Commit 3381ed45 authored by Casey Duncan's avatar Casey Duncan

Fixes document_src so that it can be called without passing REQUEST as per its

signature.
parent dec18b23
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template. Zope object encapsulating a Page Template.
""" """
__version__='$Revision: 1.36 $'[11:-2] __version__='$Revision: 1.37 $'[11:-2]
import os, AccessControl, Acquisition, sys import os, AccessControl, Acquisition, sys
from types import StringType from types import StringType
...@@ -253,7 +253,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable, ...@@ -253,7 +253,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
if RESPONSE is not None: if RESPONSE is not None:
RESPONSE.setHeader('Content-Type', 'text/plain') RESPONSE.setHeader('Content-Type', 'text/plain')
if REQUEST.get('raw'): if REQUEST is not None and REQUEST.get('raw'):
return self._text return self._text
return self.read() return self.read()
......
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