Skip to content

Commit b5dae52

Browse files
author
Richard Jones
committed
more doc
1 parent 01ca978 commit b5dae52

File tree

3 files changed

+124
-54
lines changed

3 files changed

+124
-54
lines changed

doc/customizing.txt

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.84 $
5+
:Version: $Revision: 1.85 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1630,7 +1630,6 @@ template. It generally has three sections; an "editor", a "spool" and a
16301630
"history" section.
16311631

16321632

1633-
16341633
Editor Section
16351634
~~~~~~~~~~~~~~
16361635

@@ -1704,6 +1703,70 @@ describing the changed properties. As shown in the example, the editor
17041703
template can use the ":note" and ":file" fields, which are added to the
17051704
standard change note message generated by Roundup.
17061705

1706+
Form values
1707+
:::::::::::
1708+
1709+
We have a number of ways to pull properties out of the form in order to
1710+
meet the various needs of:
1711+
1712+
1. editing the current item (perhaps an issue item)
1713+
2. editing information related to the current item (eg. messages or
1714+
attached files)
1715+
3. creating new information to be linked to the current item (eg. time
1716+
spent on an issue)
1717+
1718+
In the following, ``<bracketed>`` values are variable, ":" may be
1719+
one of ":" or "@", and other text "required" is fixed.
1720+
1721+
Properties are specified as form variables:
1722+
1723+
``<propname>``
1724+
property on the current context item
1725+
1726+
``<designator>:<propname>``
1727+
property on the indicated item (for editing related information)
1728+
1729+
``<classname>-<N>:<propname>``
1730+
property on the Nth new item of classname (generally for creating new
1731+
items to attach to the current item)
1732+
1733+
Once we have determined the "propname", we check to see if it
1734+
is one of the special form values:
1735+
1736+
``:required``
1737+
The named property values must be supplied or a ValueError
1738+
will be raised.
1739+
1740+
``:remove:<propname>=id(s)``
1741+
The ids will be removed from the multilink property.
1742+
1743+
``:add:<propname>=id(s)``
1744+
The ids will be added to the multilink property.
1745+
1746+
``:link:<propname>=<designator>``
1747+
Used to add a link to new items created during edit.
1748+
These are collected up and returned in all_links. This will
1749+
result in an additional linking operation (either Link set or
1750+
Multilink append) after the edit/create is done using
1751+
all_props in _editnodes. The <propname> on the current item
1752+
will be set/appended the id of the newly created item of
1753+
class <designator> (where <designator> must be
1754+
<classname>-<N>).
1755+
1756+
Any of the form variables may be prefixed with a classname or
1757+
designator.
1758+
1759+
Two special form values are supported for backwards
1760+
compatibility:
1761+
1762+
``:note``
1763+
create a message (with content, author and date), link
1764+
to the context item. This is ALWAYS desginated "msg-1".
1765+
``:file``
1766+
create a file, attach to the current item and any
1767+
message created by :note. This is ALWAYS designated "file-1".
1768+
1769+
17071770
Spool Section
17081771
~~~~~~~~~~~~~
17091772

doc/upgrading.txt

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Migrating from 0.5 to 0.6
1313
0.6.0 Configuration
1414
-------------------
1515

16-
- Introduced EMAIL_FROM_TAG config variable. This value is inserted into
17-
the From: line of nosy email. If the sending user is "Foo Bar", the
18-
From: line is usually::
16+
Introduced EMAIL_FROM_TAG config variable. This value is inserted into
17+
the From: line of nosy email. If the sending user is "Foo Bar", the
18+
From: line is usually::
1919

2020
"Foo Bar" <[email protected]>
2121

22-
the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so::
22+
the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so::
2323

2424
"Foo Bar EMAIL_FROM_TAG" <[email protected]>
2525

@@ -34,43 +34,48 @@ one-size-fits-all, so it'll work even if you've added/removed detectors.
3434
0.6.0 Form handling changes
3535
---------------------------
3636

37-
XXX Form handling changed significantly! Document it!
37+
Roundup's form handling capabilities have been significantly expanded. This
38+
should not affect users of 0.5 installations - but if you find you're
39+
getting errors from form submissions, please ask for help on the Roundup
40+
users mailing list:
3841

39-
lose :multilink
40-
name:confirm -> :confirm:name
42+
http://lists.sourceforge.net/lists/listinfo/roundup-users
43+
44+
See the customisation doc section on "Form Values" for documentation of the
45+
new form variables possible.
4146

4247

4348
0.6.0 Multilingual character set support
4449
----------------------------------------
4550

46-
- Added internationalization support. This is done via encoding all data
47-
stored in roundup database to utf-8 (unicode encoding). To support utf-8 in
48-
web interface you should add the folowing line to your tracker's html/page
49-
and html/_generic.help files inside <head> tag::
51+
Added internationalization support. This is done via encoding all data
52+
stored in roundup database to utf-8 (unicode encoding). To support utf-8 in
53+
web interface you should add the folowing line to your tracker's html/page
54+
and html/_generic.help files inside <head> tag::
5055

5156
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5257

53-
Since latin characters in utf-8 has the same codes as in ASCII table, this
54-
modification is optional for users who use only plain latin characters.
58+
Since latin characters in utf-8 have the same codes as in ASCII table, this
59+
modification is optional for users who use only plain latin characters.
5560

56-
After this modification, you will be able to see and enter any world
57-
character via web interface. Data received via mail interface also converted
58-
to utf-8, however only new messages will be converted. If your roundup
59-
database contains some of non-ASCII characters in one of 8-bit encoding,
60-
they will not be visible in new unicode environment. Some of such data (e.g.
61-
user names, keywords, etc) can be edited by administrator, the others
62-
(e.g. messages' contents) is not editable via web interface. Currently there
63-
is no tool for converting such data, the only solution is to close
64-
appropriate old issues and create new ones with the same content.
61+
After this modification, you will be able to see and enter any world
62+
character via web interface. Data received via mail interface also converted
63+
to utf-8, however only new messages will be converted. If your roundup
64+
database contains some of non-ASCII characters in one of 8-bit encoding,
65+
they will not be visible in new unicode environment. Some of such data (e.g.
66+
user names, keywords, etc) can be edited by administrator, the others
67+
(e.g. messages' contents) is not editable via web interface. Currently there
68+
is no tool for converting such data, the only solution is to close
69+
appropriate old issues and create new ones with the same content.
6570

66-
0.6.0 User' timezone support
67-
----------------------------
71+
0.6.0 User timezone support
72+
---------------------------
6873

69-
- From version 0.6.0 roundup supports displaying of Date data in user' local
70-
timezone if he/she has provided timezone information. To make it possible
71-
some modification to tracker's schema and HTML templates are required.
72-
First you should add string property 'timezone' to user class in dbinit.py
73-
like this::
74+
From version 0.6.0 roundup supports displaying of Date data in user' local
75+
timezone if he/she has provided timezone information. To make it possible
76+
some modification to tracker's schema and HTML templates are required.
77+
First you should add string property 'timezone' to user class in dbinit.py
78+
like this::
7479

7580
user = Class(db, "user",
7681
username=String(), password=Password(),
@@ -80,41 +85,41 @@ name:confirm -> :confirm:name
8085
queries=Multilink('query'), roles=String(),
8186
timezone=String())
8287

83-
And second - html interface. Add following lines to
84-
$TRACKER_HOME/html/user.item template::
88+
And second - html interface. Add following lines to
89+
$TRACKER_HOME/html/user.item template::
8590

8691
<tr>
8792
<th>Timezone</th>
8893
<td tal:content="structure context/timezone/field">timezone</td>
8994
</tr>
9095

91-
After that all users should be able to provide their timezone information.
92-
Timezone should be a positive or negative integer - offset from GMT.
96+
After that all users should be able to provide their timezone information.
97+
Timezone should be a positive or negative integer - offset from GMT.
9398

94-
After providing timezone, roundup will show all dates values, found in web
95-
and mail interfaces in local time. It will also accept any Date info in
96-
local time, convert and store it in GMT.
99+
After providing timezone, roundup will show all dates values, found in web
100+
and mail interfaces in local time. It will also accept any Date info in
101+
local time, convert and store it in GMT.
97102

98-
However you are not forced to make these modifications. By default roundup
99-
will assume timezone=0 and will work as previous versions did.
103+
However you are not forced to make these modifications. By default roundup
104+
will assume timezone=0 and will work as previous versions did.
100105

101106

102107
0.6.0 Notes for metakit backend users
103108
-------------------------------------
104109

105-
- Roundup 0.6.0 introduced searching on ranges of dates and intervals. To
106-
support it, some modifications to interval storing routine were made. So if
107-
your tracker uses metakit backend and your db schema contains intervals
108-
property, searches on that property will not be accurate for db items that
109-
was stored before roundup' upgrade. However all new records should be
110-
searchable on intervals.
110+
Roundup 0.6.0 introduced searching on ranges of dates and intervals. To
111+
support it, some modifications to interval storing routine were made. So if
112+
your tracker uses metakit backend and your db schema contains intervals
113+
property, searches on that property will not be accurate for db items that
114+
was stored before roundup' upgrade. However all new records should be
115+
searchable on intervals.
111116

112-
It is possible to convert your database to new format: you can export and
113-
import back all your data (consult "Migrating backends" in "Maintenance"
114-
documentation). After this operation all your interval properties should
115-
become searchable.
117+
It is possible to convert your database to new format: you can export and
118+
import back all your data (consult "Migrating backends" in "Maintenance"
119+
documentation). After this operation all your interval properties should
120+
become searchable.
116121

117-
Users of backends others than metakit should not worry about this issue.
122+
Users of backends others than metakit should not worry about this issue.
118123

119124

120125
Migrating from 0.4.x to 0.5.0

roundup/cgi/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.116 2003-05-09 03:32:41 richard Exp $
1+
# $Id: client.py,v 1.117 2003-05-09 04:04:27 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -1434,10 +1434,12 @@ def parsePropsFromForm(self, num_re=re.compile('^\d+$')):
14341434
- property on the current context item
14351435
14361436
<designator>:<propname>
1437-
- property on the indicated item
1437+
- property on the indicated item (for editing related
1438+
information)
14381439
14391440
<classname>-<N>:<propname>
1440-
- property on the Nth new item of classname
1441+
- property on the Nth new item of classname (generally for
1442+
creating new items to attach to the current item)
14411443
14421444
Once we have determined the "propname", we check to see if it
14431445
is one of the special form values:

0 commit comments

Comments
 (0)