[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplate.py:1.3
Stephan Richter
srichter@cbu.edu
Thu, 13 Jun 2002 20:57:49 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv5387/lib/python/Zope/PageTemplate
Modified Files:
PageTemplate.py
Log Message:
Wrote some code that will convert form and cookie keys and values to
unicode, assuming an UTF-8 encoding. At some point we should probably find
a way to set the encoding based on a place. But this requires some more
serious infrastructure changes and should be discussed first. For now I am
happy that all the input is unicodefied.
=== Zope3/lib/python/Zope/PageTemplate/PageTemplate.py 1.2 => 1.3 ===
from Zope.TAL.TALInterpreter import TALInterpreter
from Engine import Engine
-from cStringIO import StringIO
+from StringIO import StringIO
class MacroCollection:
@@ -105,7 +105,7 @@
self, namespace)
if self._v_errors:
raise PTRuntimeError(str(self._v_errors))
- output = StringIO()
+ output = StringIO(u'')
context = self.pt_getEngineContext(namespace)
TALInterpreter(self._v_program, self._v_macros,