Commit 5eb354c7 authored by Jim Fulton's avatar Jim Fulton

Changed to use aq_explicit rather than aq_base to prevent acquisition

of isDocTemp.
parent 895498c9
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""DTML Document objects.""" """DTML Document objects."""
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
...@@ -167,7 +167,7 @@ class DTMLDocument(DTMLMethod, PropertyManager): ...@@ -167,7 +167,7 @@ class DTMLDocument(DTMLMethod, PropertyManager):
Response, and key word arguments.""" Response, and key word arguments."""
kw['document_id'] =self.id kw['document_id'] =self.id
kw['document_title']=self.title kw['document_title']=self.title
if hasattr(self, 'aq_base'): bself=self.aq_base if hasattr(self, 'aq_explicit'): bself=self.aq_explicit
else: bself=self else: bself=self
if client is None: if client is None:
# Called as subtemplate, so don't need error propigation! # Called as subtemplate, so don't need error propigation!
......
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