[ZPT] CVS: Zope/lib/python/Products/PageTemplates - ZopePageTemplate.py:1.37
Casey Duncan
casey@zope.com
Wed, 17 Apr 2002 17:33:47 -0400
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv6217
Modified Files:
ZopePageTemplate.py
Log Message:
Fixes document_src so that it can be called without passing REQUEST as per its
signature.
=== Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.36 => 1.37 ===
if RESPONSE is not None:
RESPONSE.setHeader('Content-Type', 'text/plain')
- if REQUEST.get('raw'):
+ if REQUEST is not None and REQUEST.get('raw'):
return self._text
return self.read()