Skip to content

Commit dd3a1bc

Browse files
author
Richard Jones
committed
more doc
1 parent fad9beb commit dd3a1bc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/customizing.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.38 $
5+
:Version: $Revision: 1.39 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1821,21 +1821,21 @@ Alter the issue.item template section for messages to::
18211821
Restricting the list of users that are assignable to a task
18221822
-----------------------------------------------------------
18231823

1824-
1. create a new Role, say "Developer"::
1824+
1. In your tracker's "dbinit.py", create a new Role, say "Developer"::
18251825

18261826
db.security.addRole(name='Developer', description='A developer')
18271827

1828-
2. create a new Permission, say "Fixer", specific to "issue"::
1828+
2. Just after that, create a new Permission, say "Fixer", specific to "issue"::
18291829

18301830
p = db.security.addPermission(name='Fixer', klass='issue',
18311831
description='User is allowed to be assigned to fix issues')
18321832

1833-
3. assign the new Permission to your "Developer" Role::
1833+
3. Then assign the new Permission to your "Developer" Role::
18341834

18351835
db.security.addPermissionToRole('Developer', p)
18361836

1837-
4. use the new Permission in restricting the "assignedto" list in the issue
1838-
item edit page::
1837+
4. In the issue item edit page ("html/issue.item" in your tracker dir), use
1838+
the new Permission in restricting the "assignedto" list::
18391839

18401840
<select name="assignedto">
18411841
<option value="-1">- no selection -</option>
@@ -1848,7 +1848,8 @@ Restricting the list of users that are assignable to a task
18481848
</select>
18491849

18501850
For extra security, you may wish to set up an auditor to enforce the
1851-
Permission requirement::
1851+
Permission requirement (install this as "assignedtoFixer.py" in your tracker
1852+
"detectors" directory)::
18521853

18531854
def assignedtoMustBeFixer(db, cl, nodeid, newvalues):
18541855
''' Ensure the assignedto value in newvalues is a used with the Fixer

0 commit comments

Comments
 (0)