changeset 2957:4129ecd31eea maint-0.7

tweaks
author Richard Jones <richard@users.sourceforge.net>
date Thu, 25 Nov 2004 22:14:05 +0000
parents 6d3e2848e0ba
children 409510fcb18f
files CHANGES.txt doc/customizing.txt
diffstat 2 files changed, 20 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Thu Nov 25 10:21:11 2004 +0000
+++ b/CHANGES.txt	Thu Nov 25 22:14:05 2004 +0000
@@ -2,6 +2,9 @@
 are given with the most recent entry first.
 
 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
@@ -24,8 +27,6 @@
 - make hyperdb value parsing errors readable in mailgw errors
 - make anydbm journal export handle removed properties
 
-Feature:
-- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
 
 2004-10-15 0.7.8
 Fixed:
--- a/doc/customizing.txt	Thu Nov 25 10:21:11 2004 +0000
+++ b/doc/customizing.txt	Thu Nov 25 22:14:05 2004 +0000
@@ -1768,13 +1768,24 @@
 
              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)
@@ -1804,7 +1815,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
 reverse     only on Multilink properties - produce a list of the linked
@@ -1812,6 +1825,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/