[ZPT] CVS: Zope27/lib/python/Products/PageTemplates - PageTemplate.py:1.24.18.3

Fred L. Drake, Jr. fdrake@acm.org
Tue, 17 Sep 2002 12:32:34 -0400


Update of /cvs-repository/Zope27/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv20480

Modified Files:
      Tag: Zope-2_7-development-branch
	PageTemplate.py 
Log Message:
Use the FasterStringIO class from TAL.TALInterpreter.


=== Zope27/lib/python/Products/PageTemplates/PageTemplate.py 1.24.18.2 => 1.24.18.3 ===
--- Zope27/lib/python/Products/PageTemplates/PageTemplate.py:1.24.18.2	Sun Sep  8 23:04:10 2002
+++ Zope27/lib/python/Products/PageTemplates/PageTemplate.py	Tue Sep 17 12:32:33 2002
@@ -22,17 +22,16 @@
 from TAL.TALParser import TALParser
 from TAL.HTMLTALParser import HTMLTALParser
 from TAL.TALGenerator import TALGenerator
-from TAL.TALInterpreter import TALInterpreter
-from Expressions import getEngine
 # Do not use cStringIO here!  It's not unicode aware. :(
-from StringIO import StringIO
+from TAL.TALInterpreter import TALInterpreter, FasterStringIO
+from Expressions import getEngine
 from ExtensionClass import Base
 from ComputedAttribute import ComputedAttribute
 
 
 class PageTemplate(Base):
     "Page Templates using TAL, TALES, and METAL"
-     
+
     content_type = 'text/html'
     expand = 0
     _v_errors = ()
@@ -47,7 +46,7 @@
     def StringIO(self):
         # Third-party products wishing to provide a full Unicode-aware
         # StringIO can do so by monkey-patching this method.
-        return StringIO()
+        return FasterStringIO()
 
     def macros(self):
         return self.pt_macros()