22Customising Roundup
33===================
44
5- :Version: $Revision: 1.76 $
5+ :Version: $Revision: 1.77 $
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
@@ -2186,7 +2186,14 @@ Adding in state transition control
21862186Sometimes tracker admins want to control the states that users may move issues
21872187to.
21882188
2189- 1. add a Multilink property to the status class::
2189+ 1. make "status" a required variable. This is achieved by adding the
2190+ following to the top of the form in the ``issue.item`` template::
2191+
2192+ <input type="hidden" name="@required" value="status">
2193+
2194+ this will force users to select a status.
2195+
2196+ 2. add a Multilink property to the status class::
21902197
21912198 stat = Class(db, "status", ... , transitions=Multilink('status'), ...)
21922199
@@ -2195,7 +2202,7 @@ to.
21952202 a. through the web using the class list -> status class editor, or
21962203 b. using the roundup-admin "set" command.
21972204
2198- 2 . add an auditor module ``checktransition.py`` in your tracker's
2205+ 3 . add an auditor module ``checktransition.py`` in your tracker's
21992206 ``detectors`` directory::
22002207
22012208 def checktransition(db, cl, nodeid, newvalues):
@@ -2216,7 +2223,7 @@ to.
22162223 def init(db):
22172224 db.issue.audit('set', checktransition)
22182225
2219- 3 . in the ``issue.item`` template, change the status editing bit from::
2226+ 4 . in the ``issue.item`` template, change the status editing bit from::
22202227
22212228 <th nowrap>Status</th>
22222229 <td tal:content="structure context/status/menu">status</td>
0 commit comments