Skip to content

Commit 237ea3c

Browse files
author
Richard Jones
committed
merge from maint-0-7
1 parent 39562e8 commit 237ea3c

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Fixed:
4646

4747

4848
2004-10-?? 0.7.9
49+
Feature:
50+
- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
51+
4952
Fixed:
5053
- popup listing uses filter args (thanks Marlon van den Berg)
5154
- fixed editing of message contents

doc/customizing.txt

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

5-
:Version: $Revision: 1.158 $
5+
:Version: $Revision: 1.159 $
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
@@ -1764,15 +1764,26 @@ plain render a "plain" representation of the property. This method
17641764

17651765
"structure python:msg.content.plain(hyperlink=1)"
17661766

1767-
Note also that the text is automatically HTML-escaped before
1768-
the hyperlinking transformation.
1767+
The text is automatically HTML-escaped before the hyperlinking
1768+
transformation done in the plain() method.
1769+
17691770
hyperlinked The same as msg.content.plain(hyperlink=1), but nicer::
17701771

17711772
"structure msg/content/hyperlinked"
17721773

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

18041815
Interval properties - render the interval in a pretty
1805-
format (eg. "yesterday")
1816+
format (eg. "yesterday"). The format arguments are those used
1817+
in the standard ``strftime`` call (see the `Python Library
1818+
Reference: time module`__)
18061819
menu only on Link and Multilink properties - render a form select
18071820
list for this property
18081821
sorted only on Multilink properties - produce a list of the linked
@@ -1816,6 +1829,8 @@ reverse only on Multilink properties - produce a list of the linked
18161829
isset returns True if the property has been set to a value
18171830
=========== ================================================================
18181831

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

0 commit comments

Comments
 (0)