[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PageTemplates - ZPythonExpr.py:1.5 ZRPythonExpr.py:1.7

Evan Simpson evan@zope.com
Mon, 12 Nov 2001 11:14:49 -0500


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

Modified Files:
	ZPythonExpr.py ZRPythonExpr.py 
Log Message:
Set 'this' on templateDict when calling DTML


=== Releases/Zope/lib/python/Products/PageTemplates/ZPythonExpr.py 1.4 => 1.5 ===
     td = TemplateDict()
     td.validate = validate
-    td.this = None
+    td.this = ns['here']
     td._push(ns['request'])
-    td._push(InstanceDict(ns['here'], td))
+    td._push(InstanceDict(td.this, td))
     td._push(ns)
     try:
         if arg==2:


=== Releases/Zope/lib/python/Products/PageTemplates/ZRPythonExpr.py 1.6 => 1.7 ===
 def call_with_ns(f, ns, arg=1):
     td = Rtd()
+    td.this = ns['here']
     td._push(ns['request'])
-    td._push(InstanceDict(ns['here'], td))
+    td._push(InstanceDict(td.this, td))
     td._push(ns)
     try:
         if arg==2: