[Zope-Checkins]
SVN: Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
the constructor now uses text/html as default value for content_type
Andreas Jung
andreas at andreas-jung.com
Fri Dec 29 06:55:57 EST 2006
Log message for revision 71671:
the constructor now uses text/html as default value for content_type
Changed:
U Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
===================================================================
--- Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-29 11:55:43 UTC (rev 71670)
+++ Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-29 11:55:56 UTC (rev 71671)
@@ -103,12 +103,11 @@
security.declareProtected(view_management_screens,
'read', 'ZScriptHTML_tryForm')
- def __init__(self, id, text=None, content_type=None, strict=True, output_encoding='utf-8'):
+ def __init__(self, id, text=None, content_type='text/html', strict=True, output_encoding='utf-8'):
self.id = id
self.expand = 0
self.ZBindings_edit(self._default_bindings)
self.output_encoding = output_encoding
-
# default content
if not text:
text = open(self._default_content_fn).read()
More information about the Zope-Checkins
mailing list