Commit bcb5c442 authored by Evan Simpson's avatar Evan Simpson

Prevent macro expansion errors if we aren't supposed to be expanding

(Collector #221)
parent 5e36b07b
......@@ -15,7 +15,7 @@
HTML- and XML-based template objects using TAL, TALES, and METAL.
"""
__version__='$Revision: 1.20 $'[11:-2]
__version__='$Revision: 1.21 $'[11:-2]
import os, sys, traceback, pprint
from TAL.TALParser import TALParser
......@@ -95,6 +95,7 @@ class PageTemplate(Base):
err = self._v_errors
if err:
return err
if not self.expand: return
try:
self.pt_render(source=1)
except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment