Commit 00b45a25 authored by Shane Hathaway's avatar Shane Hathaway

pDocumentTemplate has some trouble with the "this" attribute. Since

pDocumentTemplate compatibility is not vital, this solution
works well enough.
parent 41e3df36
......@@ -193,7 +193,7 @@ class DTMLFile(Bindings, Explicit, ClassicHTMLFile):
# 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment