22Customising Roundup
33===================
44
5- :Version: $Revision: 1.9 $
5+ :Version: $Revision: 1.9.2.1 $
66
77.. contents::
88
99
10+ What You Can Do
11+ ---------------
12+
13+ Customisation of Roundup can take one of three forms:
14+
15+ 1. `instance configuration`_ file changes
16+ 2. `instance schema`_ changes
17+ 3. "definition" class `database content`_ changes
18+
19+ The third case is special because it takes two distinctly different forms
20+ depending upon whether the instance has been initialised or not. The other two
21+ may be done at any time, before or after instance initialisation. Yes, this
22+ includes adding or removing properties from classes.
23+
24+
25+ Instances in a Nutshell
26+ -----------------------
27+
1028Instances have the following structure:
1129
1230+-------------------+--------------------------------------------------------+
@@ -336,7 +354,8 @@ Instance Schema
336354---------------
337355
338356Note: if you modify the schema, you'll most likely need to edit the
339- `web interface`_ HTML template files to reflect your changes.
357+ `web interface`_ HTML template files and `detectors`_ to reflect
358+ your changes.
340359
341360An instance schema defines what data is stored in the instance's database. The
342361two schemas shipped with Roundup turn it into a typical software bug tracker
@@ -496,6 +515,7 @@ Create a node in the database. This is generally used to create nodes in the
496515
497516Detectors - adding behaviour to your tracker
498517~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
518+ .. _`detectors`:
499519
500520Sample additional detectors that have been found useful will appear in the
501521``detectors`` directory of the Roundup distribution:
@@ -506,6 +526,28 @@ newissuecopy.py
506526 use it (look for the text '
[email protected] ') or you'll get email errors!
507527
508528
529+ Database Content
530+ ----------------
531+
532+ Note: if you modify the content of definitional classes, you'll most likely
533+ need to edit the instance `detectors`_ to reflect your changes.
534+
535+ Customisation of the special "definitional" classes (eg. status, priority,
536+ resolution, ...) may be done either before or after the instance is
537+ initialised. The actual method of doing so is completely different in each
538+ case though, so be careful to use the right one.
539+
540+ **Changing content before instance initialisation**
541+ Edit the dbinit module in your instance to alter the nodes created in using
542+ the create() methods.
543+
544+
545+ **Changing content after instance initialisation**
546+ Use the roundup-admin interface's create, set and retire methods to add,
547+ alter or remove nodes from the classes in question.
548+
549+
550+
509551Web Interface
510552-------------
511553
0 commit comments