[ZPT] CVS: Zope/lib/python/TAL - DummyEngine.py:1.31

Fred L. Drake, Jr. fdrake@acm.org
Fri, 24 May 2002 11:43:59 -0400


Update of /cvs-repository/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv29557/TAL

Modified Files:
	DummyEngine.py 
Log Message:
Make the Python value for "default" evaluate as true in a Boolean context.

=== Zope/lib/python/TAL/DummyEngine.py 1.30 => 1.31 ===
 from TALDefs import NAME_RE, TALESError, ErrorInfo
 
-Default = []
+class Default:
+    pass
+Default = Default()
 
 name_match = re.compile(r"(?s)(%s):(.*)\Z" % NAME_RE).match