[Zope-Checkins]
CVS: Releases/Zope/lib/python/Products/PageTemplates
- PythonExpr.py:1.12
Evan Simpson
cvs-admin at zope.org
Tue Nov 4 15:13:53 EST 2003
Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv14334/lib/python/Products/PageTemplates
Modified Files:
PythonExpr.py
Log Message:
Collector #616: Make CONTEXTS available to TALES Python expressions.
=== Releases/Zope/lib/python/Products/PageTemplates/PythonExpr.py 1.11 => 1.12 ===
--- Releases/Zope/lib/python/Products/PageTemplates/PythonExpr.py:1.11 Wed Oct 9 10:40:33 2002
+++ Releases/Zope/lib/python/Products/PageTemplates/PythonExpr.py Tue Nov 4 15:13:52 2003
@@ -45,7 +45,7 @@
def _bind_used_names(self, econtext, _marker=[]):
# Bind template variables
- names = {}
+ names = {'CONTEXTS': econtext.contexts}
vars = econtext.vars
getType = econtext.getCompiler().getTypes().get
for vname in self._f_varnames:
More information about the Zope-Checkins
mailing list