summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-10-14 21:19:39 +0000
committerFred Drake <fdrake@acm.org>2005-10-14 21:19:39 +0000
commit91d4e49843dbd3c31a9c9745cb36dc1f3c045ec9 (patch)
tree60d64a2a16393cdf6a3d93e17a6eccb00de944bd
parent03b2ab74ffacaf270541ef3f41ec1c2642306609 (diff)
downloadzope-pagetemplate-monolithic-zope3-fdrake-anguenot_better_xml_support_for_pt.tar.gz
checkpoint: move to a single output modemonolithic-zope3-fdrake-anguenot_better_xml_support_for_pt
WARNING: lots of tests fail!
-rw-r--r--pagetemplate.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pagetemplate.py b/pagetemplate.py
index 2d80f55..0204c9a 100644
--- a/pagetemplate.py
+++ b/pagetemplate.py
@@ -185,6 +185,7 @@ class PageTemplate(object):
"""
engine = self.pt_getEngine()
source_file = self.pt_source_file()
+ gen = TALGenerator(engine, source_file=source_file)
if self.content_type == 'text/html':
# Deprecation warnings that should have sense until Zope 3.4
from warnings import warn
@@ -194,10 +195,8 @@ class PageTemplate(object):
"located there %s." % self.pt_source_file(),
DeprecationWarning)
# EOF deprecation
- gen = TALGenerator(engine, xml=0, source_file=source_file)
parser = HTMLTALParser(gen)
else:
- gen = TALGenerator(engine, source_file=source_file)
parser = TALParser(gen)
self._v_errors = ()