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

Evan Simpson evan@zope.com
Fri, 25 Jan 2002 12:56:05 -0500


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

Modified Files:
	TALES.py 
Log Message:
Fix TALES error reporting


=== Releases/Zope/lib/python/Products/PageTemplates/TALES.py 1.27 => 1.28 ===
         return s
     def __nonzero__(self):
-        return 0
+        return 1
 
 class Undefined(TALESError):
     '''Exception raised on traversal of an undefined path'''
@@ -245,10 +245,6 @@
             expression = self._engine.compile(expression)
         try:
             v = expression(self)
-            if isinstance(v, Exception):
-                if isinstance(v, TALESError):
-                    raise v, None, v.takeTraceback()
-                raise v
         except TALESError, err:
             err.setPosition(self.position)
             raise err, None, sys.exc_info()[2]