Skip to content

Commit 2a9a41d

Browse files
author
Richard Jones
committed
doc fix
1 parent 6b59059 commit 2a9a41d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/customizing.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.119 $
5+
:Version: $Revision: 1.120 $
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
@@ -1607,7 +1607,14 @@ local only on Date properties - return this date as a new property
16071607
python:context.creation.local(10)
16081608

16091609
will render the date with a +10 hour offset.
1610-
pretty only on Interval properties - render the interval in a pretty
1610+
pretty Date properties - render the date as "dd Mon YYYY" (eg. "19
1611+
Mar 2004"). Takes an optional format argument, for example::
1612+
1613+
python:context.activity.pretty('%Y-%m-%d')
1614+
1615+
Will format as "2004-03-19" instead.
1616+
1617+
Interval properties - render the interval in a pretty
16111618
format (eg. "yesterday")
16121619
menu only on Link and Multilink properties - render a form select
16131620
list for this property

0 commit comments

Comments
 (0)