Mercurial > p > roundup > code
changeset 3259:f3e82dc57c7e maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 05 Apr 2005 01:13:00 +0000 |
| parents | 3654a806e084 |
| children | 62d58c72621b |
| files | CHANGES.txt doc/customizing.txt doc/index.txt doc/upgrading.txt |
| diffstat | 4 files changed, 19 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Mon Apr 04 08:47:14 2005 +0000 +++ b/CHANGES.txt Tue Apr 05 01:13:00 2005 +0000 @@ -57,6 +57,7 @@ - removed rlog module (py 2.3 is minimum version now) - fixed class "help" listing paging (sf bug 1106329) - nicer error looking up values of None (response to sf bug 1108697) +- added "imapServer.py" script (sf patch 934567) - fallback for (list) popups if javascript disabled (sf patch 1101626)
--- a/doc/customizing.txt Mon Apr 04 08:47:14 2005 +0000 +++ b/doc/customizing.txt Tue Apr 05 01:13:00 2005 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.161.2.10 $ +:Version: $Revision: 1.161.2.11 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -3689,6 +3689,7 @@ The contents of the detector should be something like this:: + def blockresolution(db, cl, nodeid, newvalues): ''' If the issue has blockers, don't allow it to be resolved. ''' @@ -3719,18 +3720,21 @@ if newvalues['status'] == resolved_id: raise ValueError, "This issue can't be resolved until %s resolved."%s - def resolveblockers(db, cl, nodeid, newvalues): + + def resolveblockers(db, cl, nodeid, oldvalues): ''' When we resolve an issue that's a blocker, remove it from the blockers list of the issue(s) it blocks. ''' - if not newvalues.has_key('status'): + newstatus = cl.get(nodeid,'status') + + # no change? + if oldvalues.get('status', None) == newstatus: return - # get the resolved state ID resolved_id = db.status.lookup('resolved') # interesting? - if newvalues['status'] != resolved_id: + if newstatus != resolved_id: return # yes - find all the blocked issues, if any, and remove me from @@ -3742,7 +3746,6 @@ blockers.remove(nodeid) cl.set(issueid, blockers=blockers) - def init(db): # might, in an obscure situation, happen in a create db.issue.audit('create', blockresolution)
--- a/doc/index.txt Mon Apr 04 08:47:14 2005 +0000 +++ b/doc/index.txt Tue Apr 05 01:13:00 2005 +0000 @@ -133,7 +133,7 @@ Klamer Schutte, Dougal Scott, Stefan Seefeld, -Jouni K Seppänen, +Jouni K Seppanen, Jeffrey P Shell, Joel Shprentz, Terrel Shumway,
--- a/doc/upgrading.txt Mon Apr 04 08:47:14 2005 +0000 +++ b/doc/upgrading.txt Tue Apr 05 01:13:00 2005 +0000 @@ -52,6 +52,10 @@ 0.8.0 New tracker layout ------------------------ +You will need to remove any reference to the "Web Registration" and +"Email Registration" Permissions from your dbinit.py file before running +the "genconfig" command. + The ``config.py`` file has been replaced by ``config.ini``. You may use the roundup-admin command "genconfig" to generate a new config file:: @@ -111,6 +115,10 @@ p = db.security.getPermission('Create', cl) db.security.addPermissionToRole('User', p) +You should remove any reference to the "Web Registration" and "Email +Registration" Permissions from your schema.py file as the "Create" "user" +Permission replaces them. + You will need to explicitly let anonymous users access the web interface so that regular users are able to see the login form. Note that almost all trackers will need this Permission. The only situation where it's not
