[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates - TALES.py:1.35

Evan Simpson evan@zope.com
Wed, 25 Sep 2002 20:30:25 -0400


Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv27140/lib/python/Products/PageTemplates

Modified Files:
	TALES.py 
Log Message:
Added unit tests for the behavior of tal:attributes with 'default'.
Fixed Collector #580 by making evaluateBoolean() an alias for evaluate().


=== Releases/Zope/lib/python/Products/PageTemplates/TALES.py 1.34 => 1.35 ===
--- Releases/Zope/lib/python/Products/PageTemplates/TALES.py:1.34	Mon Sep 23 15:58:52 2002
+++ Releases/Zope/lib/python/Products/PageTemplates/TALES.py	Wed Sep 25 20:29:54 2002
@@ -214,9 +214,7 @@
         return expression(self)
 
     evaluateValue = evaluate
-
-    def evaluateBoolean(self, expr):
-        return not not self.evaluate(expr)
+    evaluateBoolean = evaluate
 
     def evaluateText(self, expr):
         text = self.evaluate(expr)