diff roundup/cgi/PageTemplates/PythonExpr.py @ 1257:93b80ad11ca8

merged Zope Collector #372 fix from ZPT CVS trunk
author Richard Jones <richard@users.sourceforge.net>
date Thu, 10 Oct 2002 03:48:02 +0000
parents c08b3820edd1
children fc52d57c6c3e
line wrap: on
line diff
--- a/roundup/cgi/PageTemplates/PythonExpr.py	Thu Oct 10 03:47:27 2002 +0000
+++ b/roundup/cgi/PageTemplates/PythonExpr.py	Thu Oct 10 03:48:02 2002 +0000
@@ -19,7 +19,7 @@
 
 """
 
-__version__='$Revision: 1.3 $'[11:-2]
+__version__='$Revision: 1.4 $'[11:-2]
 
 from TALES import CompilerError
 from string import strip, split, join, replace, lstrip
@@ -53,7 +53,7 @@
         # Bind template variables
         names = {}
         vars = econtext.vars
-        getType = econtext._engine.getTypes().get
+        getType = econtext.getCompiler().getTypes().get
         for vname in self._f_varnames:
             has, val = vars.has_get(vname)
             if not has:
@@ -83,5 +83,5 @@
         self._econtext = econtext
     def __call__(self, text):
         return self._handler(self._name, text,
-                             self._econtext._engine)(self._econtext)
+                             self._econtext.getCompiler())(self._econtext)
 

Roundup Issue Tracker: http://roundup-tracker.org/