Skip to content

Commit aa82163

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 00060cc commit aa82163

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Fixed:
2121
"debug" multiprocess mode (roundup-server) or the DEBUG_TO_CLIENT var
2222
(roundup.cgi) to have the errors appear in your browser
2323
- fix setgid typo (sf bug 1171346)
24+
- fix faulty find_template filename facility (sf bug 1163629)
2425

2526

2627
2005-03-03 0.8.2

doc/admin_guide.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Administration Guide
33
====================
44

5-
:Version: $Revision: 1.15.2.1 $
5+
:Version: $Revision: 1.15.2.2 $
66

77
.. contents::
88

@@ -220,8 +220,8 @@ Migrating Backends
220220
2. use the roundup-admin tool "export" command to export the contents of
221221
your tracker to disk
222222
3. copy the tracker home to a new directory
223-
4. change the backend used in the tracker home ``select_db.py`` file
224-
5. delete the "db" directory from the new directory
223+
4. delete the "db" directory from the new directory
224+
5. enter the new backend name in the tracker home ``db/backend_name`` file
225225
6. use the roundup-admin "import" command to import the previous export with
226226
the new tracker home
227227
7. test each of the admin tool, web interface and mail gateway using the new

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Nathaniel Smith,
143143
Maciej Starzyk,
144144
Mitchell Surface,
145145
Mike Thompson,
146+
Michael Twomey,
146147
Martin Uzak,
147148
Darryl VanDorp,
148149
J Vickroy,

doc/upgrading.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ The ``dbinit.py`` file has been split into two new files,
9797
need to be copied. Neither do the last few lines -- those starting
9898
with ``import detectors``, down to ``return db`` inclusive.
9999

100+
You may remove the ``__init__.py`` module from the "detectors" directory as
101+
it is no longer used.
102+
100103
There's a new way to write extension code for Roundup - the old
101104
``interfaces.py`` file will be ignored. See the `customisation
102105
documentation`_ for information about how extensions are now written.

roundup/cgi/templating.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def find_template(dir, name, view):
8585

8686
# try with a .html or .xml extension (new-style)
8787
for extension in '.html', '.xml':
88-
filename = filename + extension
89-
src = os.path.join(dir, filename)
88+
f = filename + extension
89+
src = os.path.join(dir, f)
9090
if os.path.exists(src):
91-
return (src, filename)
91+
return (src, f)
9292

9393
# no view == no generic template is possible
9494
if not view:

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.74.2.4 2005-04-13 06:11:15 richard Exp $
20+
$Id: roundup_server.py,v 1.74.2.5 2005-04-13 06:12:02 richard Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -263,7 +263,7 @@ def setgid(group):
263263
return
264264

265265
# if root, setgid to the running user
266-
if not os.getuid():
266+
if os.getuid():
267267
print _('WARNING: ignoring "-g" argument, not root')
268268
return
269269

templates/classic/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def own_record(db, userid, itemid):
124124
# Let anonymous users access the email interface (note that this implies
125125
# that they will be registered automatically, hence they will need the
126126
# "Create" user Permission below)
127-
db.security.addPermissionToRole('Anonymous', 'Email Access')
127+
# This is disabled by default to stop spam from auto-registering users on
128+
# public trackers.
129+
#db.security.addPermissionToRole('Anonymous', 'Email Access')
128130

129131
# Assign the appropriate permissions to the anonymous user's Anonymous
130132
# Role. Choices here are:

0 commit comments

Comments
 (0)