From: richard Date: Sun, 9 Mar 2003 23:03:06 +0000 (+0000) Subject: fix to sf bug 700272 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c022fd659ebfd49cb0d5bc2e3a29acf7da66b56;p=roundup.git fix to sf bug 700272 git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1580 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/doc/customizing.txt b/doc/customizing.txt index f80e713..940d4b8 100644 --- a/doc/customizing.txt +++ b/doc/customizing.txt @@ -2,7 +2,7 @@ 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 @@ -2186,7 +2186,14 @@ Adding in state transition control 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:: + + + + this will force users to select a status. + +2. add a Multilink property to the status class:: stat = Class(db, "status", ... , transitions=Multilink('status'), ...) @@ -2195,7 +2202,7 @@ to. 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): @@ -2216,7 +2223,7 @@ to. 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:: Status status