Commit 4e09ff2a authored by Jim Fulton's avatar Jim Fulton

Turn off error handling machinery for sub-documents (client is None)

parent 9fcc5a25
"""Document object"""
__version__='$Revision: 1.61 $'[11:-2]
__version__='$Revision: 1.62 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower
......@@ -70,6 +70,12 @@ class Document(cDocumentTemplate.cDocument, HTML, Explicit,
""" """
kw['document_id'] =self.id
kw['document_title']=self.title
if client is None:
# Called as subtemplate, so don't need error propigation!
r=apply(HTML.__call__, (self, client, REQUEST), kw)
if RESPONSE is None: return r
return decapitate(r, RESPONSE)
try:
try: r=apply(HTML.__call__, (self, client, REQUEST), kw)
except:
......
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