Log message for revision 71593: write() only accepts unicode Changed: U Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py
-=- Modified: Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py =================================================================== --- Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-18 10:58:32 UTC (rev 71592) +++ Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-18 19:06:33 UTC (rev 71593) @@ -278,6 +278,8 @@ return c def write(self, text): + if not isinstance(text, unicode): + raise TypeError("'text' parameter must be unicode") self.ZCacheable_invalidate() ZopePageTemplate.inheritedAttribute('write')(self, text) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins