changeset 2958:1ae91c2fa5fe

merge from maint-0-7
author Richard Jones <richard@users.sourceforge.net>
date Thu, 25 Nov 2004 22:17:04 +0000
parents 4511fd6c5dbf
children fa5410ae581d
files CHANGES.txt doc/customizing.txt
diffstat 2 files changed, 23 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Thu Nov 25 10:31:00 2004 +0000
+++ b/CHANGES.txt	Thu Nov 25 22:17:04 2004 +0000
@@ -46,6 +46,9 @@
 
 
 2004-10-?? 0.7.9
+Feature:
+- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
+
 Fixed:
 - popup listing uses filter args (thanks Marlon van den Berg)
 - fixed editing of message contents
--- a/doc/customizing.txt	Thu Nov 25 10:31:00 2004 +0000
+++ b/doc/customizing.txt	Thu Nov 25 22:17:04 2004 +0000
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.158 $
+:Version: $Revision: 1.159 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1764,15 +1764,26 @@
   
               "structure python:msg.content.plain(hyperlink=1)"
 
-             Note also that the text is automatically HTML-escaped before
-             the hyperlinking transformation.
+             The text is automatically HTML-escaped before the hyperlinking
+             transformation done in the plain() method.
+
 hyperlinked The same as msg.content.plain(hyperlink=1), but nicer::
 
               "structure msg/content/hyperlinked"
 
 field       render an appropriate form edit field for the property - for
             most types this is a text entry box, but for Booleans it's a
-            tri-state yes/no/neither selection.
+            tri-state yes/no/neither selection. This method may take some
+            arguments:
+
+            size
+              Sets the width in characters of the edit field
+
+            format (Date properties only)
+              Sets the format of the date in the field - uses the same
+              format string argument as supplied to the ``pretty`` method
+              below.
+
 stext       only on String properties - render the value of the property
             as StructuredText (requires the StructureText module to be
             installed separately)
@@ -1802,7 +1813,9 @@
             Will format as "2004-03-19" instead.
 
             Interval properties - render the interval in a pretty
-            format (eg. "yesterday")
+            format (eg. "yesterday"). The format arguments are those used
+            in the standard ``strftime`` call (see the `Python Library
+            Reference: time module`__)
 menu        only on Link and Multilink properties - render a form select
             list for this property
 sorted      only on Multilink properties - produce a list of the linked
@@ -1816,6 +1829,8 @@
 isset       returns True if the property has been set to a value
 =========== ================================================================
 
+__ http://docs.python.org/lib/module-time.html
+
 All of the above functions perform checks for permissions required to
 display or edit the data they are manipulating. The simplest case is
 editing an issue title. Including the expression::

Roundup Issue Tracker: http://roundup-tracker.org/