Mercurial > p > roundup > code
changeset 2087:8e960088b44c maint-0.6
doc fix
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 18 Mar 2004 22:47:00 +0000 |
| parents | 6e1e717a9caa |
| children | 332c040b82da |
| files | doc/customizing.txt |
| diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/customizing.txt Thu Mar 18 02:40:08 2004 +0000 +++ b/doc/customizing.txt Thu Mar 18 22:47:00 2004 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.93.2.8 $ +:Version: $Revision: 1.93.2.9 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -1589,7 +1589,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
