summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 835cf5b)
raw | patch | inline | side by side (parent: 835cf5b)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 9 Mar 2003 23:03:06 +0000 (23:03 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 9 Mar 2003 23:03:06 +0000 (23:03 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1580 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/customizing.txt | patch | blob | history |
diff --git a/doc/customizing.txt b/doc/customizing.txt
index f80e71333e5b46f931ffd9dcbbf8af8473329b66..940d4b8b42abe7e6ac0d1c7c9609cc7e43b6e0ba 100644 (file)
--- a/doc/customizing.txt
+++ b/doc/customizing.txt
Customising Roundup
===================
-:Version: $Revision: 1.76 $
+:Version: $Revision: 1.77 $
.. This document borrows from the ZopeBook section on ZPT. The original is at:
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
Sometimes tracker admins want to control the states that users may move issues
to.
-1. add a Multilink property to the status class::
+1. make "status" a required variable. This is achieved by adding the
+ following to the top of the form in the ``issue.item`` template::
+
+ <input type="hidden" name="@required" value="status">
+
+ this will force users to select a status.
+
+2. add a Multilink property to the status class::
stat = Class(db, "status", ... , transitions=Multilink('status'), ...)
a. through the web using the class list -> status class editor, or
b. using the roundup-admin "set" command.
-2. add an auditor module ``checktransition.py`` in your tracker's
+3. add an auditor module ``checktransition.py`` in your tracker's
``detectors`` directory::
def checktransition(db, cl, nodeid, newvalues):
def init(db):
db.issue.audit('set', checktransition)
-3. in the ``issue.item`` template, change the status editing bit from::
+4. in the ``issue.item`` template, change the status editing bit from::
<th nowrap>Status</th>
<td tal:content="structure context/status/menu">status</td>