[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - engine.py:1.14
Jim Fulton
jim@zope.com
Tue, 20 May 2003 16:27:28 -0400
Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv30737/src/zope/app/pagetemplate
Modified Files:
engine.py
Log Message:
Added a hook used to make sure that the ZPT top-level variables are
properly security proxied.
=== Zope3/src/zope/app/pagetemplate/engine.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/pagetemplate/engine.py:1.13 Thu May 1 15:35:25 2003
+++ Zope3/src/zope/app/pagetemplate/engine.py Tue May 20 16:27:28 2003
@@ -56,6 +56,10 @@
return eval(self._code, vars)
class ZopeContext(Context):
+
+ def setContext(self, name, value):
+ # Hook to allow subclasses to do things like adding security proxies
+ Context.setContext(self, name, ProxyFactory(value))
def evaluateMacro(self, expr):
macro = Context.evaluateMacro(self, expr)