comparison doc/upgrading.txt @ 1009:fc55426544b5

more upgrading docco and a tool to fix roles
author Richard Jones <richard@users.sourceforge.net>
date Mon, 02 Sep 2002 08:11:02 +0000
parents 10ed4791f969
children 6afef8529d6c
comparison
equal deleted inserted replaced
1008:10ed4791f969 1009:fc55426544b5
159 issue = IssueClass(db, "issue", nosy=Multilink("user", do_journal='yes'), 159 issue = IssueClass(db, "issue", nosy=Multilink("user", do_journal='yes'),
160 assignedto=Link("user"), topic=Multilink("keyword"), 160 assignedto=Link("user"), topic=Multilink("keyword"),
161 priority=Link("priority"), status=Link("status")) 161 priority=Link("priority"), status=Link("status"))
162 162
163 noting that your definition of the nosy Multilink will override the normal one. 163 noting that your definition of the nosy Multilink will override the normal one.
164
164 165
165 0.5.0 User schema changes 166 0.5.0 User schema changes
166 ~~~~~~~~~~~~~~~~~~~~~~~~~ 167 ~~~~~~~~~~~~~~~~~~~~~~~~~
167 168
168 Users have two more properties, "queries" and "roles". You'll have something 169 Users have two more properties, "queries" and "roles". You'll have something
296 297
297 You may verify the setup of Permissions and Roles using the new 298 You may verify the setup of Permissions and Roles using the new
298 "``roundup-admin security``" command. 299 "``roundup-admin security``" command.
299 300
300 301
302 0.5.0 User changes
303 ~~~~~~~~~~~~~~~~~~
304
305 To support all those schema changes, you'll need to massage your user database
306 a little too, to:
307
308 1. make sure there's an "anonymous" user - this user is mandatory now and is
309 the one that unknown users are logged in as.
310 2. make sure all users have at least one Role.
311
312 If you don't have the "anonymous" user, create it now with the command::
313
314 roundup-admin create user username=anonymous roles=Anonymous
315
316 making sure the capitalisation is the same as above. Once you've done that,
317 you'll need to set the roles property on all users to a reasonable default.
318 The admin user should get "Admin", the anonymous user "Anonymous"
319 and all other users "User". The ``fixroles.py`` script in the tools directory
320 will do this. Run it like so (where python is your python 2+ binary)::
321
322 python tools/fixroles.py -i <instance home>
323
324
325
301 0.5.0 CGI interface changes 326 0.5.0 CGI interface changes
302 --------------------------- 327 ---------------------------
303 328
304 The CGI interface code was completely reorganised and largely rewritten. The 329 The CGI interface code was completely reorganised and largely rewritten. The
305 end result is that this section of your instance interfaces module will need 330 end result is that this section of your instance interfaces module will need

Roundup Issue Tracker: http://roundup-tracker.org/