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

Evan Simpson evan@zope.com
Tue, 11 Dec 2001 23:47:13 -0500


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

Modified Files:
	Expressions.py TALES.py 
Log Message:
Resync with changed implementation of 'item' in ZTUtils.Iterator.


=== Releases/Zope/lib/python/Products/PageTemplates/Expressions.py 1.28 => 1.29 ===
 from Acquisition import aq_base, aq_inner, aq_parent
 
+
 _engine = None
 def getEngine():
     global _engine
@@ -254,11 +255,10 @@
             raise Unauthorized, name
         i = 1
 
-    plen = len(path)
     REQUEST={'TraversalRequestNameStack': path}
     validate = securityManager.validate
     object = self
-    while i < plen:
+    while i < len(path):
         __traceback_info__ = (path, i)
         name = path[i]
         i = i + 1


=== Releases/Zope/lib/python/Products/PageTemplates/TALES.py 1.26 => 1.27 ===
         try:
             if ZTUtils.Iterator.next(self):
-                self._context.setLocal(self.name, self.item())
+                self._context.setLocal(self.name, self.item)
                 return 1
         except TALESError:
             raise