Skip to content

Commit 6836d63

Browse files
author
Richard Jones
committed
tweaks
1 parent f79e6d1 commit 6836d63

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

CHANGES.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

44
2004-10-?? 0.7.9
5+
Feature:
6+
- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
7+
58
Fixed:
69
- popup listing uses filter args (thanks Marlon van den Berg)
710
- fixed editing of message contents
@@ -24,8 +27,6 @@ Fixed:
2427
- make hyperdb value parsing errors readable in mailgw errors
2528
- make anydbm journal export handle removed properties
2629

27-
Feature:
28-
- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
2930

3031
2004-10-15 0.7.8
3132
Fixed:

doc/customizing.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,13 +1768,24 @@ plain render a "plain" representation of the property. This method
17681768

17691769
The text is automatically HTML-escaped before the hyperlinking
17701770
transformation done in the plain() method.
1771+
17711772
hyperlinked The same as msg.content.plain(hyperlink=1), but nicer::
17721773

17731774
"structure msg/content/hyperlinked"
17741775

17751776
field render an appropriate form edit field for the property - for
17761777
most types this is a text entry box, but for Booleans it's a
1777-
tri-state yes/no/neither selection.
1778+
tri-state yes/no/neither selection. This method may take some
1779+
arguments:
1780+
1781+
size
1782+
Sets the width in characters of the edit field
1783+
1784+
format (Date properties only)
1785+
Sets the format of the date in the field - uses the same
1786+
format string argument as supplied to the ``pretty`` method
1787+
below.
1788+
17781789
stext only on String properties - render the value of the property
17791790
as StructuredText (requires the StructureText module to be
17801791
installed separately)
@@ -1804,14 +1815,18 @@ pretty Date properties - render the date as "dd Mon YYYY" (eg. "19
18041815
Will format as "2004-03-19" instead.
18051816

18061817
Interval properties - render the interval in a pretty
1807-
format (eg. "yesterday")
1818+
format (eg. "yesterday"). The format arguments are those used
1819+
in the standard ``strftime`` call (see the `Python Library
1820+
Reference: time module`__)
18081821
menu only on Link and Multilink properties - render a form select
18091822
list for this property
18101823
reverse only on Multilink properties - produce a list of the linked
18111824
items in reverse order
18121825
isset returns True if the property has been set to a value
18131826
=========== ================================================================
18141827

1828+
__ http://docs.python.org/lib/module-time.html
1829+
18151830
All of the above functions perform checks for permissions required to
18161831
display or edit the data they are manipulating. The simplest case is
18171832
editing an issue title. Including the expression::

0 commit comments

Comments
 (0)