Skip to content

Commit 35220a9

Browse files
author
Richard Jones
committed
docs editing from Jean Jordaan
1 parent 8979685 commit 35220a9

File tree

12 files changed

+177
-175
lines changed

12 files changed

+177
-175
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Fixed:
99
- have Permissions only test the check function if itemid is suppled
1010
- modify cgi templating system to check item-level permissions in listings
1111
- enable batching in message and file listings
12-
- more documentation of security mechanisms
12+
- more documentation of security mechanisms (incl. sf patches 1117932,
13+
1117860)
1314
- better unit tests for security mechanisms
1415

1516

doc/customizing.txt

Lines changed: 144 additions & 142 deletions
Large diffs are not rendered by default.

doc/upgrading.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,19 @@ The ``dbinit.py`` file has been split into two new files,
6464
``initial_data.py`` and ``schema.py``. The contents of this file are:
6565

6666
``initial_data.py``
67-
You don't need on of these as your tracker is already initialised.
67+
You don't need one of these as your tracker is already initialised.
6868

6969
``schema.py``
70-
The contents of the ``def open(name=None):`` function go in this file.
71-
72-
Copy the lines of that function (down to the next ``def`` statement) from
73-
the ``dbinit.py`` file and *remove* the leading four spaces on each line
74-
(if there's 8 leading spaces, only remove 4).
75-
76-
Remove the first few lines - those starting with ``from roundup.hyperdb
77-
import ...`` and the ``db = Database(config, name)`` line.
78-
79-
Remove the last few lines starting with ``import detectors`` down to
80-
``return db`` inclusive.
70+
Copy the body of the ``def open(name=None)`` function from your old
71+
tracker's ``dbinit.py`` file to this file. As the lines you're copying
72+
aren't part of a function definition anymore, one level of indentation
73+
needs to be removed (remove only the leading four spaces on each
74+
line).
75+
76+
The first few lines -- those starting with ``from roundup.hyperdb
77+
import ...`` and the ``db = Database(config, name)`` line -- don't
78+
need to be copied. Neither do the last few lines -- those starting
79+
with ``import detectors``, down to ``return db`` inclusive.
8180

8281
There's a new way to write extension code for Roundup - the old
8382
``interfaces.py`` file will be ignored. See the `customisation

doc/whatsnew-0.8.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Logging of internal messages
4343
Roundup's previously ad-hoc logging of events has been cleaned up and is
4444
now configured in a single place in the tracker configuration file.
4545

46-
The `customisation documentation`_ has more details on how this is
46+
The `customization documentation`_ has more details on how this is
4747
configured.
4848

4949

@@ -102,22 +102,22 @@ In both cases, the value is a valid charset name (eg. ``utf-8`` or
102102

103103
Inside Roundup, all strings are stored and processed in utf-8.
104104
Unfortunately, some older browsers do not work properly with
105-
utf8-encoded pages (e.g. Netscape Navigator 4 displays wrong
105+
utf-8-encoded pages (e.g. Netscape Navigator 4 displays wrong
106106
characters in form fields). This version allows to change
107107
the character set for http transfers. To do so, you may add
108108
the following code to your ``page.html`` template::
109109

110110
<tal:block define="uri string:${request/base}${request/env/PATH_INFO}">
111-
<a tal:attributes="href python:request.indexargs_href(uri,
111+
<a tal:attributes="href python:request.indexargs_url(uri,
112112
{'@charset':'utf-8'})">utf-8</a>
113-
<a tal:attributes="href python:request.indexargs_href(uri,
113+
<a tal:attributes="href python:request.indexargs_url(uri,
114114
{'@charset':'koi8-r'})">koi8-r</a>
115115
</tal:block>
116116

117-
(substitute ``koi8-r`` with appropriate charset for your language).
117+
(substitute ``koi8-r`` with the appropriate charset for your language).
118118
Charset preference is kept in the browser cookie ``roundup_charset``.
119119

120-
Lines ``meta http-equiv`` added to the tracker templates in version 0.6.0
120+
``meta http-equiv`` lines added to the tracker templates in version 0.6.0
121121
should be changed to include actual character set name::
122122

123123
<meta http-equiv="Content-Type"
@@ -154,4 +154,4 @@ Web server
154154
The builtin web server may now perform HTTP Basic Authentication by
155155
itself.
156156

157-
.. _`customisation documentation`: customizing.html
157+
.. _`customization documentation`: customizing.html

roundup/cgi/actions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.42 2005-01-05 22:10:28 richard Exp $
1+
#$Id: actions.py,v 1.43 2005-02-12 00:47:17 richard Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random
44

@@ -151,7 +151,7 @@ def handle(self):
151151

152152
# The [1:] strips off the '?' character, it isn't part of the
153153
# query string.
154-
url = req.indexargs_href('', {})[1:]
154+
url = req.indexargs_url('', {})[1:]
155155

156156
key = self.db.query.getkey()
157157
if key:
@@ -556,7 +556,7 @@ def handle(self):
556556
urllib.quote(self.template))
557557
if self.nodeid is None:
558558
req = templating.HTMLRequest(self.client)
559-
url += '&' + req.indexargs_href('', {})[1:]
559+
url += '&' + req.indexargs_url('', {})[1:]
560560
raise exceptions.Redirect, url
561561

562562
class NewItemAction(EditCommon):

templates/classic/html/_generic.help.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<tr class="navigation">
4040
<th>
4141
<a tal:define="prev batch/previous" tal:condition="prev"
42-
tal:attributes="href python:request.indexargs_href(request.classname,
42+
tal:attributes="href python:request.indexargs_url(request.classname,
4343
{'@template':'help', 'property': request.form['property'].value,
4444
'properties': request.form['properties'].value,
4545
'@startwith':prev.first, '@pagesize':prev.size})"
@@ -53,7 +53,7 @@
5353
</th>
5454
<th>
5555
<a tal:define="next batch/next" tal:condition="next"
56-
tal:attributes="href python:request.indexargs_href(request.classname,
56+
tal:attributes="href python:request.indexargs_url(request.classname,
5757
{'@template':'help', 'property': request.form['property'].value,
5858
'properties': request.form['properties'].value,
5959
'@startwith':next.first, '@pagesize':next.size})"

templates/classic/html/issue.index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<tr class="navigation">
6666
<th>
6767
<a tal:define="prev batch/previous" tal:condition="prev"
68-
tal:attributes="href python:request.indexargs_href(request.classname,
68+
tal:attributes="href python:request.indexargs_url(request.classname,
6969
{'@startwith':prev.first, '@pagesize':prev.size})"
7070
i18n:translate="">&lt;&lt; previous</a>
7171
&nbsp;
@@ -76,7 +76,7 @@
7676
/></th>
7777
<th>
7878
<a tal:define="next batch/next" tal:condition="next"
79-
tal:attributes="href python:request.indexargs_href(request.classname,
79+
tal:attributes="href python:request.indexargs_url(request.classname,
8080
{'@startwith':next.first, '@pagesize':next.size})"
8181
i18n:translate="">next &gt;&gt;</a>
8282
&nbsp;

templates/classic/html/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
114114
<a tal:attributes="href string:issue?@sort=-activity&@group=priority&@filter=status,assignedto&@columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}" i18n:translate="">Your Issues</a><br>
115115
<a tal:attributes="href string:user${request/user/id}"
116116
i18n:translate="">Your Details</a><br>
117-
<a tal:attributes="href python:request.indexargs_href('',
117+
<a tal:attributes="href python:request.indexargs_url('',
118118
{'@action':'logout'})" i18n:translate="">Logout</a>
119119
</p>
120120
<p class="userblock">

templates/classic/initial_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
address=admin_email, roles='Admin')
2525
user.create(username="anonymous", roles='Anonymous')
2626

27-
# add any additional database create steps here - but only if you
27+
# add any additional database creation steps here - but only if you
2828
# haven't initialised the database with the admin "initialise" command
2929

3030

templates/minimal/html/_generic.help.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<tr class="navigation">
4040
<th>
4141
<a tal:define="prev batch/previous" tal:condition="prev"
42-
tal:attributes="href python:request.indexargs_href(request.classname,
42+
tal:attributes="href python:request.indexargs_url(request.classname,
4343
{'@template':'help', 'property': request.form['property'].value,
4444
'properties': request.form['properties'].value,
4545
'@startwith':prev.first, '@pagesize':prev.size})"
@@ -53,7 +53,7 @@
5353
</th>
5454
<th>
5555
<a tal:define="next batch/next" tal:condition="next"
56-
tal:attributes="href python:request.indexargs_href(request.classname,
56+
tal:attributes="href python:request.indexargs_url(request.classname,
5757
{'@template':'help', 'property': request.form['property'].value,
5858
'properties': request.form['properties'].value,
5959
'@startwith':next.first, '@pagesize':next.size})"

0 commit comments

Comments
 (0)