[Checkins]
SVN: Zope/trunk/lib/python/Products/PageTemplates/__init__.py
removed monkey patch since this related code has been fixed
Andreas Jung
andreas at andreas-jung.com
Tue Feb 20 13:37:32 EST 2007
Log message for revision 72726:
removed monkey patch since this related code has been fixed
in the Z3 world
Changed:
U Zope/trunk/lib/python/Products/PageTemplates/__init__.py
-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/__init__.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/__init__.py 2007-02-20 18:36:28 UTC (rev 72725)
+++ Zope/trunk/lib/python/Products/PageTemplates/__init__.py 2007-02-20 18:37:31 UTC (rev 72726)
@@ -33,23 +33,3 @@
ZopePageTemplate.initialize(context)
-# HACK!!!
-# We need to monkeypatch the parseString method of the Zope 3
-# XMLParser since the internal ZPT representation uses unicode
-# however the XMLParser (using Expat) can only deal with standard
-# Python strings. However we won't and can't convert directly
-# to UTF-8 within the ZPT wrapper code.
-# Unicode support for (this issue) should be directly added
-# to zope.tal.xmlparser however this requires a new Zope 3.3.X
-# release. For now we fix it here.
-
-from zope.tal.xmlparser import XMLParser
-import logging
-
-def parseString(self, s):
- if isinstance(s, unicode):
- s = s.encode('utf-8')
- self.parser.Parse(s, 1)
-
-XMLParser.parseString = parseString
-logging.info('Monkeypatching zope.tal.xmlparser.XMLParser.parseString()')
More information about the Checkins
mailing list