Mercurial > p > roundup > code
annotate doc/index.html @ 370:745f9cacfba0
Info on setting up a local spool handling mail gateway.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 07 Nov 2001 05:38:57 +0000 |
| parents | b24754a5c629 |
| children | 00f120add0f7 |
| rev | line source |
|---|---|
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 <html><head> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 <title>Roundup: an Issue-Tracking System for Knowledge Workers</title> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 </head><body> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 |
|
268
dcc1ed25e6bc
Minor pre- 0.3.0 changes
Richard Jones <richard@users.sourceforge.net>
parents:
266
diff
changeset
|
5 <h1 align=center>Roundup (0.3.0)</h1> |
| 256 | 6 <h3 align=center>An Issue-Tracking System for Knowledge Workers</h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
7 |
| 256 | 8 <h1>Contents</h1> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
9 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
10 <ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
11 <li><a href="overview.html">Overview</a> (Initial submission to SC Track) |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
12 <li><a href="#installation">Installation</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
13 <ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
14 <li><a href="#requires">Prerequisites</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
15 <li><a href="#getting">Getting Roundup</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
16 <li><a href="#installing">Installing Roundup</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
17 </ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
18 <li><a href="#starting">Getting Started</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 <ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 <li><a href="#instance">The Instance</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 <li><a href="#startcmd">Command Line Tool</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 <li><a href="#startweb">E-Mail Interface</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 <li><a href="#startweb">Web Interface</a> |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
24 <li><a href="#users">Users and Access Control</a> (Users and permissions, Adding users) |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 <li><a href="#issues">Issues</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 </ul> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
27 <li><a href="#guide">User Guide</a> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
28 <ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
29 <li><a href="#cmd">Command Line Tool</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
30 <li><a href="#web">Web Interface</a> |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
31 <li><a href="#mail">E-Mail Gateway</a> (Message content summary, Address handling, Performing Actions) |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
32 </ul> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
33 <li><a href="#custom">Customising Roundup</a> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
34 <ul> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
35 <li><a href="#config">Instance Configuration</a> |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
36 <li><a href="#custinst">Instance Schema</a> (Creating a new information store) |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
37 <li><a href="#custweb">Web Interface</a> (Displaying properties, Index views, Item views) |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
38 </ul> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
39 <li><a href="spec.html">Roundup's Design Document</a> ("Implementation Guide") |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 <li><a href="#ack">Acknowledgements</a> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
41 </ul> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
42 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
43 <p><hr> |
| 256 | 44 <h1><a name="installation">Installation</a></h1> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
45 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
46 |
| 256 | 47 <h2><a name="requires">Prerequisites</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 <dl> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
50 <dt>Either: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
51 <dd>Python 2.0 with pydoc installed. See http://www.lfw.org/ for pydoc. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
52 <dt>or |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
53 <dd>Python 2.1 or later |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
54 </dl> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
55 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
56 Download the latest version from |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
57 <a href="http://www.python.org/">http://www.python.org/</a>. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
58 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
59 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
60 |
| 256 | 61 <h2><a name="getting">Getting Roundup</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
62 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
63 Download the latest version from |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
64 <a href="http://roundup.sf.net/">http://roundup.sf.net/</a>. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
65 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
66 |
| 256 | 67 <h2><a name="installing">Installing Roundup</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
68 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
69 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
70 <li>Run: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
71 <br><tt>python setup.py install</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
72 <li>If you would prefer the scripts installed in somewhere other than |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
73 <tt>/usr/local/bin</tt>, add <tt>"--install-scripts=<dir>"</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
74 to the command: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
75 <br><tt>python setup.py install --install-scripts=<dir></tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
76 <li>The command: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
77 <br><tt>python setup.py install --help</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
78 <br>gives all the options available for installation. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
79 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
80 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
81 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
82 <p><hr> |
| 256 | 83 <h1><a name="starting">Getting Started</a></h1> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
84 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
85 The following instructions assume that you have installed roundup. If you |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
86 haven't, you may still proceed - just preface all commands with "./" |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
87 ie. "./roundup-admin init". |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
88 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
89 |
| 256 | 90 <h2><a name="instance">The Instance</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
91 |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
92 We'll be referring to the term <em>instance</em> a lot from now on. An |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
93 instance is |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
94 a directory in your filesystem that is where all the information about a |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
95 live issue tracker database is stored. The data that is entered as issues, |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
96 the users who access the database and the definition of the database itself |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
97 all reside there: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
98 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
99 <li><strong>Hyperdatabase</strong> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
100 <br>This is the lowest component of Roundup and is where all the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
101 issues, users, file attachments and messages are stored. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
102 <li><strong>Database schema</strong> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
103 <br>This describes the content of the hyperdatabase - what fields are |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
104 stored for issues, what user information, etc. Being stored in the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
105 instance, this allows it to be customised for a particular application. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
106 It also means that changes in the Roundup core code do not affect a |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
107 running instance. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
108 <li><strong>Web Interface</strong> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
109 <br>The web interface templates are defined in the instance too - and |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
110 the actual CGI interface class is defined (mostly using base classes in |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
111 the Roundup core code) so it, like the database, may be customised for |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
112 each instance in use. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
113 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
114 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
115 Instances are created using the <tt>roundup-admin</tt> tool. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
116 |
| 256 | 117 <h2><a name="startcmd">Command Line Tool</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
118 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
119 To initiliase a new instance, run <tt>roundup-admin init</tt>. You will be |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
120 asked a series of questions: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
121 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
122 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
123 <li>Instance home directory |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
124 <li>Schema to use |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
125 <li>Database back-end to use |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
126 <li>Administration user "admin" password. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
127 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
128 |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
129 You should also think about whether there is going to be controlled access |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
130 to the instance on the machine the instance is running on. That is, who can |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
131 actually make changes to the database using the roundup-admin tool. See |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
132 the section on <a href="#users">Users and Access Control</a> for |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
133 information on how to secure your instance from the start. |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
134 |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
135 <p> |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
136 |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
137 Roundup is configurable using an instance_config.py file in the instance home. |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
138 It should be edited before roundup is used, and may have the following |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
139 variable declarations: |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
140 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
141 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
142 <li>MAILHOST |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
143 <br>The SMTP mail host that roundup will use to send mail |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
144 <li>MAIL_DOMAIN |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
145 <br>The domain name used for email addresses |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
146 <li>ISSUE_TRACKER_WEB |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
147 <br>The web address of the issue tracker's web interface |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
148 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
149 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
150 <p> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
151 The email addresses used by the system by default are: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
152 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
153 <ol> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
154 <li>ISSUE_TRACKER_EMAIL - issue_tracker@MAIL_DOMAIN |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
155 <br>submissions of issues |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
156 <li>ADMIN_EMAIL - roundup-admin@MAIL_DOMAIN |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
157 <br>roundup's internal use (problems, etc) |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
158 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
159 |
| 256 | 160 <h2><a name="startweb">E-Mail Interface</a></h2> |
|
370
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
161 |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
162 <h3>Setup 1: As a mail alias pipe process</h3> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
163 Set up a mail alias called "issue_tracker" as: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
164 <blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
165 <tt>|/usr/bin/python /usr/local/bin/roundup-mailgw |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
166 <instance_home></tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
167 </blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
168 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
169 In some installations (e.g. RedHat 6.2 I think) you'll need to set up smrsh |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
170 so sendmail will accept the pipe command. In that case, symlink |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
171 /etc/smrsh/roundup-mailgw to /usr/local/bin/roundup-mailgw and change the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
172 command to: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
173 <blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
174 <tt>|roundup-mailgw <instance_home></tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
175 </blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
176 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
177 To test the mail gateway on unix systems, try: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
178 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
179 <blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
180 <tt>echo test |mail -s '[issue] test' issue_tracker@your.domain</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
181 </blockquote> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
182 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
183 |
|
370
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
184 <h3>Setup 2: As a regular cron job</h3> |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
185 |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
186 Set the roundup-mailgw up to run every 10 minutes or so. For example: |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
187 <blockquote> |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
188 <tt>10 * * * * /usr/local/bin/roundup-mailgw <instance_home> <mail_spool_file></tt> |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
189 </blockquote> |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
190 |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
191 Where the mail_spool_file argument is the location of the roundup |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
192 submission user's mail spool. On most systems, the spool for a user |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
193 "issue_tracker" will be "/var/mail/issue_tracker". |
|
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
194 |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
195 |
| 256 | 196 <h2><a name="startweb">Web Interface</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
197 This software will work through apache or stand-alone. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
198 <p> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
199 <strong>Stand-alone:</strong> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
200 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
201 <li>Edit roundup-server at the top - ROUNDUP_INSTANCE_HOMES needs to know |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
202 about your instance. *** command-line option |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
203 <li><tt>roundup-server [hostname port]</tt> (hostname may be "") |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
204 <li>Load up the page <tt>/<instance name>/index</tt> where |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
205 instance name is the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
206 name you nominated in <tt>ROUNDUP_INSTANCE_HOMES</tt>. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
207 *** command-line option |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
208 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
209 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
210 <strong>Apache:</strong> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
211 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
212 <li>Make sure roundup.cgi is executable. Edit it at the top - |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
213 ROUNDUP_INSTANCE_HOMES needs to know about your instance. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
214 <li>Edit your <tt>/etc/httpd/conf/httpd.conf</tt> and make sure that the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
215 <tt>/home/httpd/html/roundup/roundup.cgi</tt> script will be treated as a CGI |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
216 script. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
217 <li>Add the following to your <tt>/etc/httpd/conf/httpd.conf</tt>: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
218 <pre> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
219 ------8<------- snip here ------8<------- |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
220 RewriteEngine on |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
221 RewriteCond %{HTTP:Authorization} ^(.*) |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
222 RewriteRule ^/roundup/roundup.cgi(.*) /home/httpd/html/roundup/roundup.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
223 ------8<------- snip here ------8<------- |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
224 </pre> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
225 note: the RewriteRule must be on one line - no breaks |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
226 <li>Re-start your apache to re-load the config |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
227 <li>Load up the page <tt>/roundup/roundup.cgi/<instance name>/index</tt> where |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
228 instance name is the name you nominated in ROUNDUP_INSTANCE_HOMES. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
229 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
230 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
231 |
| 256 | 232 <h2><a name="users">Users</a></h2> |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
233 |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
234 <h3>Users and permissions</h3> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
235 By default, roundup automatically creates one user when the instance |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
236 database is initialised (using roundup-admin init). The user is "admin" and |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
237 the password is the one you supply at that time. |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
238 <p> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
239 If users attempt to use roundup in any manner and are not identified to |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
240 roundup, they will be using the database in a read-only mode. That is, if |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
241 roundup doesn't know who they are, they can't change anything. This has the |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
242 following repurcussions: |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
243 <dl> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
244 <dt><strong>Command-line interface</strong> |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
245 <dd>The data modification commands (create, init, retire, set) are |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
246 performed as the "admin" user. It is therefore important that the database |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
247 be protected by the filesystem if protection is required. On a Unix system, |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
248 the easiest and most flexible method of doing so is: |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
249 <ol> |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
250 <li>Add a new user and group to your system (e.g. "issue_tracker") |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
251 <li>When creating a new instance home, use the following commands |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
252 (substituting instance_home for the directory you want to use):<br> |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
253 <pre> |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
254 mkdir instance_home |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
255 chown issue_tracker:issue_tracker instance_home |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
256 chmod g+rwxs instance_home |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
257 roundup-admin -i instance_home init |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
258 </pre> |
| 277 | 259 <li>Now, edit the /etc/group line for the issue_tracker group so it includes |
| 260 the unix logins of all the users who are going to administer your roundup | |
| 261 instance. If you're running the web or mail gateways, then be sure to | |
| 262 include those users in the group too (on some Linux systems, these | |
| 263 users are "www" or "apache" and "mail".) | |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
264 </ol> |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
268
diff
changeset
|
265 |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
266 <dt><strong>E-Mail interface</strong> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
267 <dd>Users are identified by e-mail address - a new user entry will be |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
268 created for any e-mail address that is not recognised, so users are |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
269 <em>always</em> identified by roundup. |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
270 <dt><strong>Web interface</strong> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
271 <dd>Unidentified users have read-only access. If the users database has an |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
272 entry with the username "anonymous", then unidentified users are |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
273 automatically logged in as that user. This gives them write access. |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
274 </dl> |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
275 <p> |
|
316
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
314
diff
changeset
|
276 *** anonymous access and the ANONYMOUS_* configuratins. |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
277 |
|
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
278 <h3>Adding users</h3> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
279 To add users, use one of the following interfaces: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
280 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
281 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
282 <li>On the web, access the URL <tt>.../<instance name>/newuser</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
283 to bring up a form which may be used to add a new user. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
284 <li>On the command-line, use: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
285 <br><tt>roundup-admin -i <instance home> create user |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
286 username=bozo password=bozo address=richard@clown.org</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
287 <br>Supply the admin username and password. roundup-admin will print the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
288 id of the new user. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
289 <li>Any e-mail sent to roundup from an address that doesn't match an |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
290 existing user in the database will result in a new user entry being |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
291 created for that user. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
292 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
293 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
294 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
295 |
| 256 | 296 <h2><a name="issues">Issues</a></h2> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
297 To add issues, use one of the following interfaces: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
298 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
299 <ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
300 <li>On the web, access the URL <tt>.../<instance name>/newissue</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
301 to bring up a form which may be used to add a new issue. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
302 <li>On the command-line, use: |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
303 <br><tt>roundup-admin -i <instance home> create issue |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
304 title="test issue"</tt> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
305 <br>Supply the admin username and password. roundup-admin will print the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
306 id of the new issue. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
307 <li>Any e-mail sent to roundup with the subject line containing [issue] |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
308 will automatically created a new issue in the database using the |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
309 contents of the e-mail. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
310 </ol> |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
311 |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
312 <p><hr> |
| 256 | 313 <h1><a name="guide">User Guide</a></h1> |
| 314 <h2><a name="cmd">Command Line Tool</a></h2> | |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
315 |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
316 Usage: |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
317 <tt>roundup-admin [-i instance home] [-u login] [-c] <command> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
318 <arguments></tt> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
319 |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
320 <p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
321 <table><tr><th colspan=2>Options:</th></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
322 <tr><td>-i instance home </td><td>specify the issue tracker "home directory" to administer |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
323 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
324 <tr><td>-u </td><td>the user[:password] to use for commands |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
325 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
326 <tr><td>-c </td><td>when outputting lists of data, just comma-separate them |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
327 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
328 </table> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
329 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
330 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
331 <table border=1 cellspacing=0> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
332 <tr><th colspan=2>Command Help</th></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
333 <tr><td valign=top><strong>history</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
334 <td><tt>history designator</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
335 Lists the journal entries for the node identified by the designator. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
336 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
337 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
338 <tr><td valign=top><strong>find</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
339 <td><tt>find classname propname=value ...</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
340 Find the nodes of the given class with a given property value. The |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
341 value may be either the nodeid of the linked node, or its key value. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
342 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
343 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
344 <tr><td valign=top><strong>list</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
345 <td><tt>list classname [property]</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
346 Lists all instances of the given class along. If the property is not |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
347 specified, the "label" property is used. The label property is tried |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
348 in order: the key, "name", "title" and then the first property, |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
349 alphabetically. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
350 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
351 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
352 <tr><td valign=top><strong>retire</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
353 <td><tt>retire designator[,designator]*</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
354 This action indicates that a particular node is not to be retrieved by |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
355 the list or find commands, and its key value may be re-used. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
356 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
357 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
358 <tr><td valign=top><strong>create</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
359 <td><tt>create classname property=value ...</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
360 This creates a new entry of the given class using the property |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
361 name=value arguments provided on the command line after the "create" |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
362 command. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
363 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
364 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
365 <tr><td valign=top><strong>get</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
366 <td><tt>get property designator[,designator]*</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
367 Retrieves the property value of the nodes specified by the designators. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
368 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
369 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
370 <tr><td valign=top><strong>spec</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
371 <td><tt>spec classname</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
372 This lists the properties for a given class. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
373 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
374 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
375 <tr><td valign=top><strong>set</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
376 <td><tt>set designator[,designator]* propname=value ...</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
377 Sets the property to the value for all designators given. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
378 </td></tr> |
|
279
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
379 |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
380 <tr><td valign=top><strong>init</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
381 <td><tt>init [template [backend [admin password]]]</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
382 The command will prompt for the instance home directory (if not supplied |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
383 through INSTANCE_HOME or the -i option. The template, backend and admin |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
384 password may be specified on the command-line as arguments, in that order. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
385 </td></tr> |
|
279
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
386 |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
387 <tr><td valign=top><strong>export</strong></td> |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
388 <td><tt>export class[,class] destination_dir</tt><p> |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
389 This action exports the current data from the database into |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
390 comma-separated files that are placed in the nominated destination |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
391 directory. The journals are not exported. |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
392 </td></tr> |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
393 |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
394 <tr><td valign=top><strong>import</strong></td> |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
395 <td><tt>import class file</tt><p> |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
396 The file must define the same properties as the class (including having |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
397 a "header" line with those property names.) |
|
231a031e4765
Updated doc for recent roundup-admin changes
Richard Jones <richard@users.sourceforge.net>
parents:
277
diff
changeset
|
398 </td></tr> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
399 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
400 <tr><td valign=top><strong>freshen</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
401 <td><tt>freshen</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
402 <strong>**DO NOT USE**</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
403 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
404 This currently kills databases!!!! |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
405 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
406 This action should generally not be used. It reads in an instance |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
407 database and writes it again. In the future, is may also update |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
408 instance code to account for changes in templates. It's probably wise |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
409 not to use it anyway. Until we're sure it won't break things... |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
410 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
411 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
412 <tr><td><strong>help</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
413 <td><tt>help [command]</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
414 Short help about roundup-admin or the specific command. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
415 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
416 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
417 <tr><td><strong>morehelp</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
418 <td><tt>morehelp</tt><p> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
419 All available help from the roundup-admin tool. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
420 </td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
421 </table> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
422 |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
423 <p> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
424 All commands (except help) require an instance specifier. This is just the path |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
425 to the roundup instance you're working with. A roundup instance is where |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
426 roundup keeps the database and configuration file that defines an issue |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
427 tracker. It may be thought of as the issue tracker's "home directory". It may |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
428 be specified in the environment variable ROUNDUP_INSTANCE or on the command |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
429 line as "-i instance". |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
430 |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
431 <p> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
432 A designator is a classname and a nodeid concatenated, eg. bug1, user10, ... |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
433 |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
434 <p> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
435 Property values are represented as strings in command arguments and in the |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
436 printed results: |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
437 <ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
438 <li>Strings are, well, strings. |
|
271
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
439 <li>Password values will display as their encoded value. |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
440 <li>Date values are printed in the full date format in the local time zone, and |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
441 accepted in the full format or any of the partial formats explained below. |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
442 <table> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
443 <tr><th>Input of...</th><th>Means...</th></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
444 <tr><td>"2000-04-17.03:45"</td><td>2000-04-17.08:45:00</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
445 <tr><td>"2000-04-17"</td><td>2000-04-17.00:00:00</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
446 <tr><td>"01-25"</td><td>yyyy-01-25.00:00:00</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
447 <tr><td>"08-13.22:13"</td><td>yyyy-08-14.03:13:00</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
448 <tr><td>"11-07.09:32:43"</td><td>yyyy-11-07.14:32:43</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
449 <tr><td>"14:25"</td><td>yyyy-mm-dd.19:25:00</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
450 <tr><td>"8:47:11"</td><td>yyyy-mm-dd.13:47:11</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
451 <tr><td>"."</td><td>"right now"</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
452 </table> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
453 <li>Link values are printed as node designators. When given as an argument, |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
454 node designators and key strings are both accepted. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
455 <li>Multilink values are printed as lists of node designators joined by commas. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
456 When given as an argument, node designators and key strings are both |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
457 accepted; an empty string, a single node, or a list of nodes joined by |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
458 commas is accepted. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
459 </ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
460 When multiple nodes are specified to the roundup get or roundup set |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
461 commands, the specified properties are retrieved or set on all the listed |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
462 nodes. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
463 <p> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
464 When multiple results are returned by the roundup get or roundup find |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
465 commands, they are printed one per line (default) or joined by commas (with |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
466 the -c) option. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
467 <p> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
468 Where the command changes data, a login name/password is required. The |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
469 login may be specified as either "name" or "name:password". |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
470 <ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
471 <li>ROUNDUP_LOGIN environment variable |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
472 <li>the -u command-line option |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
473 </ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
474 If either the name or password is not supplied, they are obtained from the |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
475 command-line. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
476 |
| 256 | 477 <h2><a name="web">Web Interface</a></h2> |
|
266
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
478 Index views may be modified by the following arguments: |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
479 <pre> |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
480 :sort - sort by prop name, optionally preceeded with '-' |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
481 to give descending or nothing for ascending sorting. |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
482 :group - group by prop name, optionally preceeded with '-' or |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
483 to sort in descending or nothing for ascending order. |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
484 :filter - selects which props should be displayed in the filter |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
485 section. Default is all. |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
486 :columns - selects the columns that should be displayed. |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
487 Default is all. |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
488 propname - selects the values the node properties given by propname |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
489 must have (very basic search/filter). |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
490 </pre> |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
491 |
|
e0a54a571f78
more doc cleanup
Richard Jones <richard@users.sourceforge.net>
parents:
265
diff
changeset
|
492 <strong>Not sure what to put in here...</strong> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
493 |
| 256 | 494 <h2><a name="mail">E-Mail Gateway</a></h2> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
495 |
| 277 | 496 <h3>Performing Actions</h3> |
| 497 The subject line of the incoming message is examined to determine whether | |
| 498 the message is an attempt to create a new item or to discuss an existing | |
| 499 item. A designator enclosed in square brackets is sought as the first thing | |
| 500 on the subject line (after skipping any "Fwd:" or "Re:" prefixes). | |
| 501 <p> | |
| 502 If an item designator (class name and id number) is found there, the newly | |
| 503 created "msg" node is added to the "messages" property for that item, and | |
| 504 any new "file" nodes are added to the "files" property for the item. | |
| 505 <p> | |
| 506 If just an item class name is found there, we attempt to create a new item | |
| 507 of that class with its "messages" property initialized to contain the new | |
| 508 "msg" node and its "files" property initialized to contain any new "file" | |
| 509 nodes. | |
| 510 | |
| 511 <h3>Setting Properties</h3> | |
| 512 The e-mail interface also provides a simple way to set | |
| 513 properties on items. At the end of the subject line, | |
| 514 <em>propname</em><tt>=</tt><em>value</em> pairs can be | |
| 515 specified in square brackets, using the same conventions | |
| 516 as for the <tt>roundup set</tt> shell command. | |
| 517 explanatory message given in the exception. | |
| 518 | |
| 519 <h3>Message content</h3> | |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
520 Incoming messages are examined for multiple parts: |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
521 <ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
522 <li>In a multipart/mixed message or part, each subpart is extracted and |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
523 examined. The text/plain subparts are assembled to form the textual |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
524 body of the message, to be stored in the file associated with a "msg" |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
525 class node. Any parts of other types are each stored in separate files |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
526 and given "file" class nodes that are linked to the "msg" node. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
527 <li>In a multipart/alternative message or part, we look for a text/plain |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
528 subpart and ignore the other parts. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
529 </ul> |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
530 |
| 277 | 531 <h4>Message summary</h4> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
532 The "summary" property on message nodes is taken from the first non-quoting |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
533 section in the message body. The message body is divided into sections by |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
534 blank lines. Sections where the second and all subsequent lines begin with |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
535 a ">" or "|" character are considered "quoting sections". The first line of |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
536 the first non-quoting section becomes the summary of the message. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
537 |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
538 <h3>Address handling</h3> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
539 All of the addresses in the To: and Cc: headers of the incoming message are |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
540 looked up among the user nodes, and the corresponding users are placed in |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
541 the "recipients" property on the new "msg" node. The address in the From: |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
542 header similarly determines the "author" property of the new "msg" |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
543 node. The default handling for addresses that don't have corresponding |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
544 users is to create new users with no passwords and a username equal to the |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
545 address. (The web interface does not permit logins for users with no |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
546 passwords.) If we prefer to reject mail from outside sources, we can simply |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
547 register an auditor on the "user" class that prevents the creation of user |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
548 nodes with no passwords. |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
549 |
| 256 | 550 <h3>Triggers</h3> |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
551 Both cases may trigger detectors (in the first case we are calling the |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
552 set() method to add the message to the item's spool; in the second case we |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
553 are calling the create() method to create a new node). If an auditor raises |
|
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
554 an exception, the original message is bounced back to the sender with the |
| 277 | 555 |
| 556 <h4>Nosy Lists</h4> | |
| 557 A standard detector is provided that watches for additions | |
| 558 to the "messages" property. When a new message is added, the | |
| 559 detector sends it to all the users on the "nosy" list for the | |
| 560 item that are not already on the "recipients" list of the | |
| 561 message. Those users are then appended to the "recipients" | |
| 562 property on the message, so multiple copies of a message | |
| 563 are never sent to the same user. The journal recorded by | |
| 564 the hyperdatabase on the "recipients" property then provides | |
| 565 a log of when the message was sent to whom. | |
|
253
5973f1d80ace
More doc, straight out of the mailgw module and roundup-admin help
Richard Jones <richard@users.sourceforge.net>
parents:
251
diff
changeset
|
566 |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
567 <p><hr> |
| 256 | 568 <h1><a name="custom">Customising Roundup</a></h1> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
569 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
570 Instances have the following structure: |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
571 <table> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
572 <tr><td valign=top><strong>instance_config.py</strong></td> |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
573 <td>Holds the basic <a href="#config">instance configuration</a></td></tr> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
574 <tr><td valign=top><strong>dbinit.py</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
575 <td>Holds the <a href="#custinst">instance schema</a></td></tr> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
576 <tr><td valign=top><strong>interfaces.py</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
577 <td>Defines the <a href="#custweb">Web</a> and E-Mail interfaces for the instance</td></tr> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
578 <tr><td valign=top><strong>select_db.py</strong></td> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
579 <td>Selects the database back-end for the instance</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
580 <tr><td valign=top><strong>db/</strong></td> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
581 <td>Holds the instance's database</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
582 <tr><td valign=top><strong>db/files/</strong></td> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
583 <td>Holds the instance's upload files and messages</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
584 <tr><td valign=top><strong>detectors/</strong></td> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
585 <td>Auditors and reactors for this instance</td></tr> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
586 <tr><td valign=top><strong>html/</strong></td> |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
587 <td>Web interface <a href="#custweb">templates</a>, images and style sheets</td></tr> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
588 </table> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
589 |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
590 <h2><a name="config">Instance Configuration</a></h2> |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
591 The <tt>instance_config.py</tt> located in your instance home contains the |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
592 basic configuration for the web and e-mail components of roundup's |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
593 interfaces. This file is a Python module. The default |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
594 <tt>instance_config.py</tt> is given below - as you can see, the |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
595 MAIL_DOMAIN must be edited before any interaction with the instance is |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
596 attempted. |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
597 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
598 <p> |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
599 <pre> |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
600 MAIL_DOMAIN=MAILHOST=HTTP_HOST=None |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
601 HTTP_PORT=0 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
602 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
603 # roundup home is this package's directory |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
604 INSTANCE_HOME=os.path.split(__file__)[0] |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
605 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
606 # The SMTP mail host that roundup will use to send mail |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
607 if not MAILHOST: |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
608 MAILHOST = 'localhost' |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
609 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
610 # The domain name used for email addresses. |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
611 if not MAIL_DOMAIN: |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
612 MAIL_DOMAIN = 'fill.me.in.' |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
613 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
614 # the next two are only used for the standalone HTTP server. |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
615 if not HTTP_HOST: |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
616 HTTP_HOST = '' |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
617 if not HTTP_PORT: |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
618 HTTP_PORT = 9080 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
619 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
620 # This is the directory that the database is going to be stored in |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
621 DATABASE = os.path.join(INSTANCE_HOME, 'db') |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
622 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
623 # This is the directory that the HTML templates reside in |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
624 TEMPLATES = os.path.join(INSTANCE_HOME, 'html') |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
625 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
626 # The email address that mail to roundup should go to |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
627 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
628 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
629 # The web address that the instance is viewable at |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
630 ISSUE_TRACKER_WEB = 'http://some.useful.url/' |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
631 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
632 # The email address that roundup will complain to if it runs into trouble |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
633 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
634 |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
635 # Somewhere for roundup to log stuff internally sent to stdout or stderr |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
636 LOG = os.path.join(INSTANCE_HOME, 'roundup.log') |
|
338
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
637 |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
638 # Where to place the web filtering HTML on the index page |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
639 FILTER_POSITION = 'bottom' # one of 'top', 'bottom', 'top and bottom' |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
640 |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
641 # Deny or allow anonymous access to the web interface |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
642 ANONYMOUS_ACCESS = 'deny' |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
643 |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
644 # Deny or allow anonymous users to register through the web interface |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
645 ANONYMOUS_REGISTER = 'deny' |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
646 |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
647 # Send nosy messages to the author of the message |
|
b24754a5c629
Feeble addition to documentation for instance configuration. Well, it'll
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
648 MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no' |
|
260
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
649 </pre> |
|
2099d0d052ed
More documentation and a new TODO item.
Richard Jones <richard@users.sourceforge.net>
parents:
257
diff
changeset
|
650 |
| 256 | 651 <h2><a name="custinst">Instance Schema</a></h2> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
652 An instance schema defines what data is stored in the instance's database. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
653 The two schemas shipped with Roundup turn it into a typical software bug |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
654 tracker (the extended schema allowing for support issues as well as bugs). |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
655 Schemas are defined using Python code. The "classic" schema looks like |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
656 this: |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
657 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
658 <pre> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
659 pri = Class(db, "priority", name=String(), order=String()) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
660 pri.setkey("name") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
661 pri.create(name="critical", order="1") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
662 pri.create(name="urgent", order="2") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
663 pri.create(name="bug", order="3") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
664 pri.create(name="feature", order="4") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
665 pri.create(name="wish", order="5") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
666 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
667 stat = Class(db, "status", name=String(), order=String()) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
668 stat.setkey("name") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
669 stat.create(name="unread", order="1") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
670 stat.create(name="deferred", order="2") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
671 stat.create(name="chatting", order="3") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
672 stat.create(name="need-eg", order="4") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
673 stat.create(name="in-progress", order="5") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
674 stat.create(name="testing", order="6") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
675 stat.create(name="done-cbb", order="7") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
676 stat.create(name="resolved", order="8") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
677 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
678 keyword = Class(db, "keyword", name=String()) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
679 keyword.setkey("name") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
680 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
681 user = Class(db, "user", username=String(), password=String(), |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
682 address=String(), realname=String(), phone=String(), organisation=String()) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
683 user.setkey("username") |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
684 user.create(username="admin", password=adminpw, address=instance_config.ADMIN_EMAIL) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
685 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
686 msg = FileClass(db, "msg", author=Link("user"), recipients=Multilink("user"), |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
687 date=Date(), summary=String(), files=Multilink("file")) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
688 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
689 file = FileClass(db, "file", name=String(), type=String()) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
690 |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
691 issue = IssueClass(db, "issue", assignedto=Link("user"), |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
692 topic=Multilink("keyword"), priority=Link("priority"), status=Link("status")) |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
693 issue.setkey('title') |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
694 </pre> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
695 |
| 277 | 696 <h3>Classes and Properties - creating a new information store</h3> |
| 697 In the instance above, we've defined 7 <em>classes</em> of information: | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
698 <dl> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
699 <dt><strong>priority</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
700 <dd>Defines the possible levels of urgency for issues. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
701 <dt><strong>status</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
702 <dd>Defines the possible states of processing the issue may be in. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
703 <dt><strong>keyword</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
704 <dd>Initially empty, will hold keywords useful for searching issues. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
705 <dt><strong>user</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
706 <dd>Initially holding the "admin" user, will eventually have an entry |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
707 for all users using roundup. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
708 <dt><strong>msg</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
709 <dd>Initially empty, will all e-mail messages sent to or generated by roundup. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
710 <dt><strong>file</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
711 <dd>Initially empty, will all files attached to issues. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
712 <dt><strong>issue</strong> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
713 <dd>Initially emtyp, this is where the issue information is stored. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
714 </dl> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
715 <p> |
| 277 | 716 We define the "priority" and "status" classes to allow two things: reduction |
| 717 in the amount of information stored on the issue and more powerful, accurate | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
718 searching of issues by priority and status. By only requiring a link on |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
719 the issue (which is stored as a single number) we reduce the chance |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
720 that someone mis-types a priority or status - or simply makes a new one |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
721 up. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
722 |
| 277 | 723 <h4>Class and Nodes</h4> |
| 724 A <em>Class</em> defines a particular class (or type) of data that will be | |
| 725 stored in the database. A class comprises one or more properties, which | |
| 726 given the information about the class nodes. | |
| 727 <p> | |
| 728 The actual data entered into the database, using <em>class</em>.create() | |
| 729 are called <em>nodes</em>. They have a special immutable property called | |
| 730 id. We sometimes refer to this as the <em>nodeid</em>. | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
731 |
| 277 | 732 |
| 733 <h4>Properties</h4> | |
| 734 A Class is comprised of one or more <em>properties</em> of the following types: | |
|
271
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
735 |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
736 <ul> |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
737 <li><em>String</em> properties are for storing arbitrary-length |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
738 strings. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
739 |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
740 <li><em>Password</em> properties are for storing encoded arbitrary-length |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
741 strings. The default encoding is defined on the roundup.password.Password |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
742 class. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
743 |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
744 <li><em>Date</em> properties store date-and-time stamps. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
745 Their values are Timestamp objects. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
746 |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
747 <li>A <em>Link</em> property refers to a single other node |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
748 selected from a specified class. The class is part of the property; |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
749 the value is an integer, the id of the chosen node. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
750 |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
751 <li>A <em>Multilink</em> property refers to possibly many nodes |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
752 in a specified class. The value is a list of integers. |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
753 </ul> |
|
85908e1f46ad
Added some more doc.
Richard Jones <richard@users.sourceforge.net>
parents:
270
diff
changeset
|
754 |
| 277 | 755 <h4>FileClass</h4> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
756 FileClasses save their "content" attribute off in a separate file from the |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
757 rest of the database. This reduces the number of large entries in the |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
758 database, which generally makes databases more efficient, and also allows |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
759 us to use command-line tools to operate on the files. They are stored in |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
760 the files sub-directory of the db directory in your instance. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
761 |
| 277 | 762 <h4>IssueClass</h4> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
763 IssueClasses automatically include the "messages", "files", "nosy", and |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
764 "superseder" properties. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
765 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
766 The messages and files properties list the links to the messages and files |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
767 related to the issue. The nosy property is a list of links to users who |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
768 wish to be informed of changes to the issue - they get "CC'ed" e-mails when |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
769 messages are sent to or generated by the issue. The nosy reactor (in the |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
770 detectors directory) handles this action. The superceder link indicates an |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
771 issue which has superceded this one. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
772 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
773 They also have the dynamically generated |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
774 "creation", "activity" and "creator" properties. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
775 <p> |
| 277 | 776 The value of the "creation" property is the date when a node was created, |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
777 and the value of the "activity" property is the date when any property on |
| 277 | 778 the node was last edited (equivalently, these are the dates on the first |
| 779 and last records in the node's journal). The "creator" property holds a | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
780 link to the user that created the issue. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
781 |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
782 <h4>setkey(property)</h4> |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
783 Select a String property of the class to be the key property. The key |
| 277 | 784 property muse be unique, and allows references to the nodes in the class by |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
785 the content of the key property. That is, we can refer to users by their |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
786 username, e.g. let's say that there's an issue in roundup, issue 23. There's |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
787 also a user, richard who happens to be user 2. To assign an issue to him, |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
788 we could do either of: |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
789 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
790 <blockquote><tt>roundup-admin set issue assignedto=2</tt></blockquote> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
791 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
792 or |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
793 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
794 <blockquote><tt>roundup-admin set issue |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
795 assignedto=richard</tt></blockquote> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
796 <p> |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
797 Note, the same thing can be done in the web and e-mail interfaces. |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
798 |
|
265
0a28169a61b0
Some more documentation.
Richard Jones <richard@users.sourceforge.net>
parents:
260
diff
changeset
|
799 <h4>create(information)</h4> |
| 277 | 800 Create a node in the database. This is generally used to create nodes in |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
801 the "definitional" classes like "priority" and "status". |
|
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
802 |
| 277 | 803 |
| 256 | 804 <h2><a name="custweb">Web Interface</a></h2> |
| 805 | |
| 806 The web interface works behind the cgi-bin/roundup.cgi or roundup-server | |
| 807 scripts. In both cases, the scripts determine which instance is being | |
| 808 accessed (the first part of the URL path inside the scope of the CGI | |
| 809 handler) and pass control on to the instance interfaces.Client class which | |
| 810 handles the rest of the access through its main() method. This means that | |
| 811 you can do pretty much anything you want as a web interface to your | |
| 812 instance. | |
| 813 <p> | |
| 814 Most customisation of the web view can be done by modifying the templates | |
| 815 in the instance html directory. These are divided into index, item and | |
| 816 newitem views. The newitem view is optional - the item view will be used if | |
| 817 the newitem view doesn't exist. | |
| 818 | |
| 257 | 819 <h3>Displaying Properties</h3> |
| 256 | 820 |
| 821 <p> | |
| 257 | 822 Properties appear in the user interface in three contexts: |
| 256 | 823 in indices, in editors, and as filters. For each type of |
| 824 property, there are several display possibilities. For example, | |
| 825 in an index view, a string property may just be printed as | |
| 826 a plain string, but in an editor view, that property should | |
| 827 be displayed in an editable field. | |
| 828 | |
| 257 | 829 <p> |
| 830 The display of a property is handled by functions in | |
| 831 the htmltemplate module. | |
| 256 | 832 |
| 257 | 833 <p> |
| 834 Displayer functions are triggered by <tt><display></tt> | |
| 256 | 835 tags in templates. The <tt>call</tt> attribute of the tag |
| 836 provides a Python expression for calling the displayer | |
| 837 function. The three standard arguments are inserted in | |
| 838 front of the arguments given. For example, the occurrence of | |
| 839 | |
| 840 <blockquote><pre><small | |
| 257 | 841 > <display call="plain('status')"> |
| 256 | 842 </small></pre></blockquote> |
| 843 | |
| 257 | 844 in a template triggers a call the "plain" function. The displayer |
| 256 | 845 functions can accept extra arguments to further specify |
| 846 details about the widgets that should be generated. By defining new | |
| 847 displayer functions, the user interface can be highly customized. | |
| 848 | |
| 257 | 849 <p> |
| 850 <table border=1 cellspacing=0> | |
| 851 <tr><th colspan=2>The displayer functions are</th></tr> | |
| 256 | 852 |
| 257 | 853 <tr><td valign="top"><strong>plain</strong></td> |
| 854 <td>Display a String property directly. | |
| 855 <p> | |
| 856 Display a Date property in a specified time zone with an option | |
| 857 to omit the time from the date stamp. | |
| 858 <p> | |
| 859 For a Link or Multilink | |
| 256 | 860 property, display the key strings of the linked nodes (or the |
| 257 | 861 ids if the linked class has no key property). |
| 862 <p> | |
| 863 <em>Options:</em><br> | |
| 864 escape (boolean) - HTML-escape the resulting text. | |
| 865 </td></tr> | |
| 866 | |
| 867 <tr><td valign="top"><strong>field</strong></td> | |
| 868 <td>Display a property like the | |
| 869 <strong>plain</strong> displayer above, but in a form field | |
| 870 to be edited. Strings, Dates and Intervals use TEXT fields, Links use | |
| 871 SELECT fields and Multilinks use SELECT MULTIPLE fields. | |
| 872 <p> | |
| 873 <em>Options:</em><br> | |
| 874 size (number) - width of TEXT fields.<br> | |
| 875 height (number) - number of nows in SELECT MULTIPLE tags.<br> | |
| 277 | 876 showid (boolean) - true includes the id of linked nodes in the SELECT |
| 257 | 877 MULTIPLE fields. |
| 878 </td></tr> | |
| 256 | 879 |
| 257 | 880 <tr><td valign="top"><strong>menu</strong></td> |
| 881 <td>For a Links and Multilinks, display the same field as would be | |
| 882 generated using <strong>field</strong>. | |
| 883 </td></tr> | |
| 256 | 884 |
| 257 | 885 <tr><td valign="top"><strong>link</strong></td> |
| 886 <td>For a Link or Multilink property, display the names of the linked | |
|
314
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
887 nodes, hyperlinked to the item views on those nodes. |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
888 <p> |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
889 For other properties, link to this node with the property as the text. |
| 257 | 890 <p> |
| 891 <em>Options:</em><br> | |
|
314
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
892 property (property name) - the property to use in the second case.<br> |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
893 is_download (boolean) - to be used for links te <em>file</em> class nodes - |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
894 this indicates that the URL should have the specified property (usually |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
895 <em>name</em>) appended so that the download has the correct name (instead |
|
baf901f72977
Updated the documentation for recent html template changes.
Richard Jones <richard@users.sourceforge.net>
parents:
279
diff
changeset
|
896 of the node designator.) |
| 257 | 897 </td></tr> |
| 898 | |
| 899 <tr><td valign="top"><strong>count</strong></td> | |
| 900 <td>For a Multilink property, display | |
| 901 a count of the number of links in the list. | |
| 902 <p> | |
| 903 <em>Arguments:</em><br> | |
| 904 property (property name) - the property to use. | |
| 256 | 905 |
| 257 | 906 </td></tr> |
| 256 | 907 |
| 257 | 908 <tr><td valign="top"><strong>reldate</strong></td> |
| 909 <td>Display a Date property in terms | |
| 256 | 910 of an interval relative to the current date (e.g. "+ 3w", "- 2d"). |
| 257 | 911 <p> |
| 912 <em>Arguments:</em><br> | |
| 913 property (property name) - the property to use. | |
| 914 <p> | |
| 915 <em>Options:</em><br> | |
| 916 pretty (boolean) - display the relative date in an English form. | |
| 917 </td></tr> | |
| 256 | 918 |
| 257 | 919 <tr><td valign="top"><strong>download</strong></td> |
| 920 <td>Show a Link("file") or Multilink("file") | |
| 921 property using links that allow you to download files. | |
| 922 <p> | |
| 923 <em>Arguments:</em><br> | |
| 924 property (property name) - the property to use. | |
| 925 </td></tr> | |
| 926 | |
| 927 <tr><td valign="top"><strong>checklist</strong></td> | |
| 928 <td>For a Link or Multilink property, | |
| 929 display checkboxes for the available choices to permit filtering. | |
| 930 <p> | |
| 931 <em>Arguments:</em><br> | |
| 932 property (property name) - the property to use. | |
| 933 </td></tr> | |
| 256 | 934 |
| 257 | 935 <tr><td valign="top"><strong>note</strong></td> |
| 936 <td>Display the special notes field, which is a text area for entering a | |
| 937 note to go along with a change. | |
| 938 </td></tr> | |
| 256 | 939 |
| 257 | 940 <tr><td valign="top"><strong>list</strong></td> |
| 277 | 941 <td>List the nodes specified by property using the standard index for |
| 257 | 942 the class. |
| 943 <p> | |
| 944 <em>Arguments:</em><br> | |
| 945 property (property name) - the property to use. | |
| 946 </td></tr> | |
| 947 | |
| 948 <tr><td valign="top"><strong>history</strong></td> | |
| 949 <td>List the history of the item. | |
| 950 </td></tr> | |
| 951 | |
| 952 <tr><td valign="top"><strong>submit</strong></td> | |
| 953 <td>Add a submit button for the item. | |
| 954 </td></tr> | |
| 955 | |
| 956 </table> | |
| 957 | |
| 958 <h3>Index Views</h3> | |
| 256 | 959 |
| 960 <p>An index view contains two sections: a filter section | |
| 961 and an index section. | |
| 962 The filter section provides some widgets for selecting | |
| 963 which items appear in the index. The index section is | |
| 964 a table of items. | |
| 965 | |
| 257 | 966 <h4>Index View Specifiers</h4> |
| 256 | 967 |
| 257 | 968 <p>An index view specifier (URL fragment) looks like this (whitespace |
| 256 | 969 has been added for clarity): |
| 970 | |
| 971 <blockquote><pre><small | |
| 972 >/issue?status=unread,in-progress,resolved& | |
| 973 topic=security,ui& | |
| 974 :group=+priority& | |
| 975 :sort=-activity& | |
| 976 :filters=status,topic& | |
| 977 :columns=title,status,fixer | |
| 978 </small></pre></blockquote> | |
| 979 | |
| 980 <p>The index view is determined by two parts of the | |
| 981 specifier: the layout part and the filter part. | |
| 982 The layout part consists of the query parameters that | |
| 983 begin with colons, and it determines the way that the | |
| 984 properties of selected nodes are displayed. | |
| 985 The filter part consists of all the other query parameters, | |
| 986 and it determines the criteria by which nodes | |
| 987 are selected for display. | |
| 988 | |
| 989 <p>The filter part is interactively manipulated with | |
| 990 the form widgets displayed in the filter section. The | |
| 991 layout part is interactively manipulated by clicking | |
| 992 on the column headings in the table. | |
| 993 | |
| 994 <p>The filter part selects the <em>union</em> of the | |
| 995 sets of items with values matching any specified Link | |
| 996 properties and the <em>intersection</em> of the sets | |
| 997 of items with values matching any specified Multilink | |
| 998 properties. | |
| 999 | |
| 1000 <p>The example specifies an index of "issue" nodes. | |
| 1001 Only items with a "status" of <em>either</em> | |
| 1002 "unread" or "in-progres" or "resolved" are displayed, | |
| 1003 and only items with "topic" values including <em>both</em> | |
| 1004 "security" <em>and</em> "ui" are displayed. The items | |
| 1005 are grouped by priority, arranged in ascending order; | |
| 1006 and within groups, sorted by activity, arranged in | |
| 1007 descending order. The filter section shows filters | |
| 1008 for the "status" and "topic" properties, and the | |
| 1009 table includes columns for the "title", "status", and | |
| 1010 "fixer" properties. | |
| 1011 | |
| 1012 <p>Associated with each item class is a default | |
| 1013 layout specifier. The layout specifier in the above | |
| 1014 example is the default layout to be provided with | |
| 1015 the default bug-tracker schema described above in | |
| 1016 section 4.4. | |
| 1017 | |
| 257 | 1018 <h4>Filter Section</h4> |
| 256 | 1019 |
| 1020 <p>The template for a filter section provides the | |
| 1021 filtering widgets at the top of the index view. | |
| 1022 Fragments enclosed in <tt><property></tt>...<tt></property></tt> | |
| 1023 tags are included or omitted depending on whether the | |
| 1024 view specifier requests a filter for a particular property. | |
| 1025 | |
| 1026 <p>Here's a simple example of a filter template. | |
| 1027 | |
| 1028 <blockquote><pre><small | |
| 1029 ><property name=status> | |
| 1030 <display call="checklist('status')"> | |
| 1031 </property> | |
| 1032 <br> | |
| 1033 <property name=priority> | |
| 1034 <display call="checklist('priority')"> | |
| 1035 </property> | |
| 1036 <br> | |
| 1037 <property name=fixer> | |
| 1038 <display call="menu('fixer')"> | |
| 1039 </property></small></pre></blockquote> | |
| 1040 | |
| 257 | 1041 <p> |
| 1042 The standard index generation code appends a section to the index pages | |
| 1043 which allows selection of the filters - from those which are defined in the | |
| 1044 filter template. | |
| 1045 | |
| 1046 <h4>Index Section</h4> | |
| 256 | 1047 |
| 1048 <p>The template for an index section describes one row of | |
| 1049 the index table. | |
| 1050 Fragments enclosed in <tt><property></tt>...<tt></property></tt> | |
| 1051 tags are included or omitted depending on whether the | |
| 1052 view specifier requests a column for a particular property. | |
| 1053 The table cells should contain <tt><display></tt> tags | |
| 1054 to display the values of the item's properties. | |
| 1055 | |
| 1056 <p>Here's a simple example of an index template. | |
| 1057 | |
| 1058 <blockquote><pre><small | |
| 1059 ><tr> | |
| 1060 <property name=title> | |
| 1061 <td><display call="plain('title', max=50)"></td> | |
| 1062 </property> | |
| 1063 <property name=status> | |
| 1064 <td><display call="plain('status')"></td> | |
| 1065 </property> | |
| 1066 <property name=fixer> | |
| 1067 <td><display call="plain('fixer')"></td> | |
| 1068 </property> | |
| 1069 </tr></small></pre></blockquote> | |
| 1070 | |
| 257 | 1071 <h4>Sorting</h4> |
| 256 | 1072 |
| 1073 <p>String and Date values are sorted in the natural way. | |
| 1074 Link properties are sorted according to the value of the | |
| 1075 "order" property on the linked nodes if it is present; or | |
| 1076 otherwise on the key string of the linked nodes; or | |
| 1077 finally on the node ids. Multilink properties are | |
| 1078 sorted according to how many links are present. | |
| 1079 | |
| 257 | 1080 <h3>Item Views</h3> |
| 256 | 1081 |
| 1082 <p>An item view contains an editor section and a spool section. | |
| 1083 At the top of an item view, links to superseding and superseded | |
| 1084 items are always displayed. | |
| 1085 | |
| 1086 | |
| 1087 | |
| 257 | 1088 <h4>Editor Section</h4> |
| 256 | 1089 |
| 1090 <p>The editor section is generated from a template | |
| 1091 containing <tt><display></tt> tags to insert | |
| 1092 the appropriate widgets for editing properties. | |
| 1093 | |
| 1094 <p>Here's an example of a basic editor template. | |
| 1095 | |
| 1096 <blockquote><pre><small | |
| 1097 ><table> | |
| 1098 <tr> | |
| 1099 <td colspan=2> | |
| 1100 <display call="field('title', size=60)"> | |
| 1101 </td> | |
| 1102 </tr> | |
| 1103 <tr> | |
| 1104 <td> | |
| 1105 <display call="field('fixer', size=30)"> | |
| 1106 </td> | |
| 1107 <td> | |
| 1108 <display call="menu('status')> | |
| 1109 </td> | |
| 1110 </tr> | |
| 1111 <tr> | |
| 1112 <td> | |
| 1113 <display call="field('nosy', size=30)"> | |
| 1114 </td> | |
| 1115 <td> | |
| 1116 <display call="menu('priority')> | |
| 1117 </td> | |
| 1118 </tr> | |
| 1119 <tr> | |
| 1120 <td colspan=2> | |
| 1121 <display call="note()"> | |
| 1122 </td> | |
| 1123 </tr> | |
| 1124 </table> | |
| 1125 </small></pre></blockquote> | |
| 1126 | |
| 1127 <p>As shown in the example, the editor template can also | |
| 1128 request the display of a "note" field, which is a | |
| 1129 text area for entering a note to go along with a change. | |
| 1130 | |
| 1131 <p>When a change is submitted, the system automatically | |
| 1132 generates a message describing the changed properties. | |
| 1133 | |
| 1134 <p>If a note is given in the "note" field, the note is | |
| 1135 appended to the description. The message is then added | |
| 1136 to the item's message spool (thus triggering the standard | |
| 1137 detector to react by sending out this message to the nosy list). | |
| 1138 | |
| 257 | 1139 <p> |
| 1140 The message also displays all of the property values on the | |
| 1141 item and indicates which ones have changed. | |
| 1142 An example of such a message might be this: | |
| 1143 | |
| 1144 <blockquote><pre> | |
| 1145 Polly's taken a turn for the worse - this is now really important! | |
| 1146 ----- | |
| 1147 title: Polly Parrot is dead | |
| 1148 priority: critical | |
| 1149 status: unread -> in-progress | |
| 1150 fixer: terry | |
| 1151 keywords: parrot,plumage,perch,nailed,dead | |
| 1152 </pre></blockquote> | |
| 1153 | |
| 1154 <h4>Spool Section</h4> | |
| 256 | 1155 |
| 1156 <p>The spool section lists messages in the item's "messages" | |
| 1157 property. The index of messages displays the "date", "author", | |
| 1158 and "summary" properties on the message nodes, and selecting a | |
| 1159 message takes you to its content. | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
1160 |
| 257 | 1161 <p>The <property> tag used in the index may also be used here - |
| 1162 it checks to see if the nominated Multilink property has any entries. | |
| 1163 This can be used to eliminate sections of the spool section if the | |
| 1164 property has no entries. | |
| 1165 | |
| 1166 <blockquote><pre> | |
| 1167 <property name="files"> | |
| 1168 <tr class="strong-header"> | |
| 1169 <td><b>Files</b></td> | |
| 1170 </tr> | |
| 1171 | |
| 1172 <tr> | |
| 1173 <td><display call="list('files')"></td> | |
| 1174 </tr> | |
| 1175 </property> | |
| 1176 </pre></blockquote> | |
| 1177 | |
|
255
d4ef19ef17bd
Bug fix for test_init on Windows.
Richard Jones <richard@users.sourceforge.net>
parents:
254
diff
changeset
|
1178 <p><hr> |
| 256 | 1179 <h1><a name="ack">Acknowledgements</a></h1> |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1180 |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1181 Go Ping, you rock! Also, go Bizar Software for letting me implement this |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1182 system on their time. |
|
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1183 |
| 254 | 1184 <p> </p> |
| 1185 <hr> | |
|
370
745f9cacfba0
Info on setting up a local spool handling mail gateway.
Richard Jones <richard@users.sourceforge.net>
parents:
338
diff
changeset
|
1186 $Id: index.html,v 1.18 2001-11-07 05:38:57 richard Exp $ |
| 254 | 1187 <p> </p> |
| 1188 | |
|
251
2f4123c715f1
Started working on some _real_ documentation!
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1189 </body></html> |
| 254 | 1190 |
