Skip to content

Commit 3a8f75b

Browse files
author
Richard Jones
committed
Handle migration
1 parent a8adde2 commit 3a8f75b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

MIGRATION.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ in thousands e.g. msg123 will be put into files/msg/0/msg123, file2003
2020
will go into files/file/2/file2003. Previous messages are still found, but
2121
could be put into this structure.
2222

23+
Migrating from 0.4.0 to 0.4.1
24+
=============================
25+
26+
Configuration
27+
-------------
28+
29+
The USER_INDEX definition introduced in 0.4.1 was too restrictive in its
30+
allowing replacement of 'assignedto' with the user's userid. Users must change
31+
the None value of 'assignedto' to 'CURRENT USER' (the string, in quotes) for
32+
the replacement behaviour to occur now.
33+
34+
2335
Migrating from 0.4.0 to 0.4.1
2436
=============================
2537

roundup/cgi_client.py

Lines changed: 7 additions & 3 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: cgi_client.py,v 1.120 2002-05-21 06:05:53 richard Exp $
18+
# $Id: cgi_client.py,v 1.121 2002-05-21 06:08:10 richard Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -125,8 +125,9 @@ def make_index_link(self, name):
125125

126126
# now format the filterspec
127127
for k, l in filterspec.items():
128-
# fix up the assignedto if needed
129-
if l == 'CURRENT USER':
128+
# fix up the CURRENT USER if needed (handle None too since that's
129+
# the old flag value)
130+
if l in (None, 'CURRENT USER'):
130131
l = [self.db.user.lookup(self.user)]
131132

132133
# add
@@ -1383,6 +1384,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
13831384

13841385
#
13851386
# $Log: not supported by cvs2svn $
1387+
# Revision 1.120 2002/05/21 06:05:53 richard
1388+
# . #551483 ] assignedto in Client.make_index_link
1389+
#
13861390
# Revision 1.119 2002/05/15 06:21:21 richard
13871391
# . node caching now works, and gives a small boost in performance
13881392
#

0 commit comments

Comments
 (0)