summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a1891a)
raw | patch | inline | side by side (parent: 0a1891a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 16 Sep 2002 02:07:44 +0000 (02:07 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 16 Sep 2002 02:07:44 +0000 (02:07 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1171 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/customizing.txt | patch | blob | history |
diff --git a/doc/customizing.txt b/doc/customizing.txt
index e6c8b1e1a8977670dc723cb2673e3a089e9b1f2e..a7c9c8170c7c7250771efb05826c14aff43704e5 100644 (file)
--- a/doc/customizing.txt
+++ b/doc/customizing.txt
Customising Roundup
===================
-:Version: $Revision: 1.35 $
+:Version: $Revision: 1.36 $
.. This document borrows from the ZopeBook section on ZPT. The original is at:
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
**style.css**
a static file that is served up as-is
+Note: Remember tyhat you can create any template extension you want to, so
+if you just want to play around with the templating for new issues, you can
+copy the current "issue.item" template to "issue.test", and then access the
+test template using the ":template" URL argument::
+
+ http://your.tracker.example/tracker/issue?:template=test
+
+and it won't affect your users using the "issue.item" template.
+
+
How the templates work
----------------------
</tal:block>
</table>
+Restricting the list of users that are assignable to a task
+-----------------------------------------------------------
+
+1. create a new Role, say "Developer"::
+
+ db.security.addRole(name='Developer', description='A developer')
+
+2. 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::
+
+ db.security.addPermissionToRole('Developer', p)
+
+4. use the new Permission in restricting the "assignedto" list in the issue
+ item edit page::
+
+ <select name="assignedto">
+ <option value="-1">- no selection -</option>
+ <tal:block tal:repeat="user db/user/list">
+ <option tal:condition="python:user.hasPermission('Fixer', context.classname)"
+ tal:attributes="value user/id;
+ selected python:user.id == context.assignedto"
+ tal:content="user/realname"></option>
+ </tal:block>
+ </select>
+
+For extra security, you may wish to overload the hasEditItemPermission method
+on your tracker's interfaces.Client class to enforce the Permission
+requirement::
+
+XXX
+
+
-------------------
Back to `Table of Contents`_