[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates -
ZopePageTemplate.py:1.44.44.5
Paul Winkler
pw_lists at slinkp.com
Fri May 28 16:49:51 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv25270
Modified Files:
Tag: Zope-2_7-branch
ZopePageTemplate.py
Log Message:
Bugfix for Collector #596, and tests for same.
=== Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.44.44.4 => 1.44.44.5 ===
--- Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py:1.44.44.4 Tue Oct 21 11:31:40 2003
+++ Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py Fri May 28 16:49:20 2004
@@ -334,11 +334,14 @@
file = REQUEST.form.get('file')
headers = getattr(file, 'headers', None)
if headers is None or not file.filename:
- zpt = ZopePageTemplate(id)
+ zpt = ZopePageTemplate(id, text)
else:
zpt = ZopePageTemplate(id, file, headers.get('content_type'))
self._setObject(id, zpt)
+ if title:
+ ob = getattr(self, id)
+ ob.pt_setTitle(title)
try:
u = self.DestinationURL()
More information about the Zope-Checkins
mailing list