[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_Var.py:1.56
R. David Murray
bitz@bitdance.com
Wed, 14 Aug 2002 12:34:20 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv31570
Modified Files:
DT_Var.py
Log Message:
Update a couple old <!-- constructs in comments to dtml- constructs,
and fix one place that url_unquote and url_unquote_plus need to
be added (I think) that chrism missed.
=== Zope/lib/python/DocumentTemplate/DT_Var.py 1.55 => 1.56 ===
--- Zope/lib/python/DocumentTemplate/DT_Var.py:1.55 Wed Aug 14 11:46:57 2002
+++ Zope/lib/python/DocumentTemplate/DT_Var.py Wed Aug 14 12:34:20 2002
@@ -25,9 +25,9 @@
objects. The value of a custom format is a method name to
be invoked on the object being inserted. The method should
return an object that, when converted to a string, yields
- the desired text. For example, the HTML source::
+ the desired text. For example, the DTML code::
- <!--#var date fmt=DayOfWeek-->
+ <dtml-var date fmt=DayOfWeek>
Inserts the result of calling the method 'DayOfWeek' of the
object bound to the variable 'date', with no arguments.
@@ -141,7 +141,7 @@
the string. If the 'etc' attribute is not provided, then '...'
is used. For example, if the value of spam is
'"blah blah blah blah"', then the tag
- '<!--#var spam size=10-->' inserts '"blah blah ..."'.
+ '<dtml-var spam size=10>' inserts '"blah blah ..."'.
Evaluating expressions without rendering results
@@ -446,7 +446,8 @@
if val.find('_') >= 0: val=val.replace('_', ' ')
return val
-modifiers=(html_quote, url_quote, url_quote_plus, newline_to_br,
+modifiers=(html_quote, url_quote, url_quote_plus, url_unquote,
+ url_unquote_plus, newline_to_br,
string.lower, string.upper, string.capitalize, spacify,
thousands_commas, sql_quote, url_unquote, url_unquote_plus)
modifiers=map(lambda f: (f.__name__, f), modifiers)