Mercurial > p > roundup > code
diff doc/customizing.txt @ 1150:22c78fb54af4
more doc
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 16 Sep 2002 04:30:45 +0000 |
| parents | 7ae32787d981 |
| children | 7e0024954954 |
line wrap: on
line diff
--- a/doc/customizing.txt Mon Sep 16 04:28:59 2002 +0000 +++ b/doc/customizing.txt Mon Sep 16 04:30:45 2002 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.38 $ +:Version: $Revision: 1.39 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -1821,21 +1821,21 @@ Restricting the list of users that are assignable to a task ----------------------------------------------------------- -1. create a new Role, say "Developer":: +1. In your tracker's "dbinit.py", create a new Role, say "Developer":: db.security.addRole(name='Developer', description='A developer') -2. create a new Permission, say "Fixer", specific to "issue":: +2. Just after that, create a new Permission, say "Fixer", specific to "issue":: p = db.security.addPermission(name='Fixer', klass='issue', description='User is allowed to be assigned to fix issues') -3. assign the new Permission to your "Developer" Role:: +3. Then assign the new Permission to your "Developer" Role:: db.security.addPermissionToRole('Developer', p) -4. use the new Permission in restricting the "assignedto" list in the issue - item edit page:: +4. In the issue item edit page ("html/issue.item" in your tracker dir), use + the new Permission in restricting the "assignedto" list:: <select name="assignedto"> <option value="-1">- no selection -</option> @@ -1848,7 +1848,8 @@ </select> For extra security, you may wish to set up an auditor to enforce the -Permission requirement:: +Permission requirement (install this as "assignedtoFixer.py" in your tracker +"detectors" directory):: def assignedtoMustBeFixer(db, cl, nodeid, newvalues): ''' Ensure the assignedto value in newvalues is a used with the Fixer
