[Zope-Checkins] CVS: Zope2 - special_dtml.py:1.19
shane@digicool.com
shane@digicool.com
Thu, 21 Jun 2001 15:42:23 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/App
In directory korak.digicool.com:/tmp/cvs-serv31362
Modified Files:
special_dtml.py
Log Message:
pDocumentTemplate has some trouble with the "this" attribute. Since
pDocumentTemplate compatibility is not vital, this solution
works well enough.
--- Updated File special_dtml.py in package Zope2 --
--- special_dtml.py 2001/06/21 17:45:12 1.18
+++ special_dtml.py 2001/06/21 19:42:22 1.19
@@ -193,7 +193,7 @@
# Someone called us.
push(cns)
ns.level = cns.level + 1
- ns.this = cns.this
+ ns.this = getattr(cns, 'this', None)
# Get their bindings. Copy the request reference
# forward, and include older keyword arguments in the
# current 'keyword_args' binding.