[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates - ZopePageTemplate.py:1.29.10.3

Casey Duncan casey@zope.com
Wed, 17 Apr 2002 17:33:42 -0400


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv6318

Modified Files:
      Tag: Zope-2_5-branch
	ZopePageTemplate.py 
Log Message:
Fixes document_src so that it can be called without passing REQUEST as per its
signature.
Removed hard coded path to Python1.5 in the test runner


=== Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.29.10.2 => 1.29.10.3 ===
         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()