22Customising 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+
17691770hyperlinked The same as msg.content.plain(hyperlink=1), but nicer::
17701771
17711772 "structure msg/content/hyperlinked"
17721773
17731774field 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+
17761787stext 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`__)
18061819menu only on Link and Multilink properties - render a form select
18071820 list for this property
18081821sorted 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
18161829isset returns True if the property has been set to a value
18171830=========== ================================================================
18181831
1832+ __ http://docs.python.org/lib/module-time.html
1833+
18191834All of the above functions perform checks for permissions required to
18201835display or edit the data they are manipulating. The simplest case is
18211836editing an issue title. Including the expression::
0 commit comments