Mercurial > p > roundup > code
diff doc/customizing.txt @ 2088:90769be53b4b
doc fix
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 18 Mar 2004 22:47:00 +0000 |
| parents | 2a4309450202 |
| children | fd5459469069 |
line wrap: on
line diff
--- a/doc/customizing.txt Thu Mar 18 02:46:20 2004 +0000 +++ b/doc/customizing.txt Thu Mar 18 22:47:00 2004 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.119 $ +:Version: $Revision: 1.120 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -1607,7 +1607,14 @@ python:context.creation.local(10) will render the date with a +10 hour offset. -pretty only on Interval properties - render the interval in a pretty +pretty Date properties - render the date as "dd Mon YYYY" (eg. "19 + Mar 2004"). Takes an optional format argument, for example:: + + python:context.activity.pretty('%Y-%m-%d') + + Will format as "2004-03-19" instead. + + Interval properties - render the interval in a pretty format (eg. "yesterday") menu only on Link and Multilink properties - render a form select list for this property
