[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates - ZopePageTemplate.py:1.27
Evan Simpson
evan@zope.com
Mon, 12 Nov 2001 10:56:09 -0500
Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv15802
Modified Files:
ZopePageTemplate.py
Log Message:
document_src is now text/plain
=== Releases/Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.26 => 1.27 ===
except TALESError, err:
if (err.type == Unauthorized or
- isinstance(err.type, Unauthorized)):
+ (isinstance(Unauthorized, Exception) and
+ isinstance(err.type, Unauthorized))):
raise err.type, err.value, err.takeTraceback()
err.takeTraceback()
raise
@@ -319,7 +320,7 @@
"""Return expanded document source."""
if RESPONSE is not None:
- RESPONSE.setHeader('Content-Type', self.content_type)
+ RESPONSE.setHeader('Content-Type', 'text/plain')
if REQUEST.get('raw'):
return self._text
return self.read()