Skip to content

Commit 0d9bcba

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent ab98d8f commit 0d9bcba

File tree

10 files changed

+26
-25
lines changed

10 files changed

+26
-25
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Fixed:
1313
- more documentation of security mechanisms (incl. sf patches 1117932,
1414
1117860)
1515
- better unit tests for security mechanisms
16+
- code cleanup (sf patch 1115329 and additional)
1617

1718

1819
2005-01-13 0.8.0b2

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.40.2.2 2005-01-05 22:13:28 richard Exp $
1+
#$Id: actions.py,v 1.40.2.3 2005-02-12 00:54:36 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):

roundup/roundupdb.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.117 2004-11-12 04:07:03 richard Exp $
18+
# $Id: roundupdb.py,v 1.117.2.1 2005-02-12 00:59:47 richard Exp $
1919

2020
"""Extending hyperdb with types specific to issue-tracking.
2121
"""
@@ -433,9 +433,9 @@ def generateCreateNote(self, nodeid):
433433

434434
# list the values
435435
m = []
436-
l = props.items()
437-
l.sort()
438-
for propname, prop in l:
436+
prop_items = props.items()
437+
prop_items.sort()
438+
for propname, prop in prop_items:
439439
value = cl.get(nodeid, propname, None)
440440
# skip boring entries
441441
if not value:
@@ -500,9 +500,9 @@ def generateChangeNote(self, nodeid, oldvalues):
500500

501501
# list the changes
502502
m = []
503-
l = changed.items()
504-
l.sort()
505-
for propname, oldvalue in l:
503+
changed_items = changed.items()
504+
changed_items.sort()
505+
for propname, oldvalue in changed_items:
506506
prop = props[propname]
507507
value = cl.get(nodeid, propname, None)
508508
if isinstance(prop, hyperdb.Link):

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
@@ -64,7 +64,7 @@
6464
<tr class="navigation">
6565
<th>
6666
<a tal:define="prev batch/previous" tal:condition="prev"
67-
tal:attributes="href python:request.indexargs_href(request.classname,
67+
tal:attributes="href python:request.indexargs_url(request.classname,
6868
{'@startwith':prev.first, '@pagesize':prev.size})"
6969
i18n:translate="">&lt;&lt; previous</a>
7070
&nbsp;
@@ -75,7 +75,7 @@
7575
/></th>
7676
<th>
7777
<a tal:define="next batch/next" tal:condition="next"
78-
tal:attributes="href python:request.indexargs_href(request.classname,
78+
tal:attributes="href python:request.indexargs_url(request.classname,
7979
{'@startwith':next.first, '@pagesize':next.size})"
8080
i18n:translate="">next &gt;&gt;</a>
8181
&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/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
tal:content="request/user/username">username</span></b><br>
4040
<a tal:attributes="href string:user${request/user/id}"
4141
i18n:translate="">Your Details</a><br>
42-
<a tal:attributes="href python:request.indexargs_href('',
42+
<a tal:attributes="href python:request.indexargs_url('',
4343
{'@action':'logout'})" i18n:translate="">Logout</a>
4444
</p>
4545

templates/minimal/initial_data.py

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

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

1414
# vim: set et sts=4 sw=4 :

0 commit comments

Comments
 (0)