[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates - PageTemplate.py:1.21

Evan Simpson evan@zope.com
Fri, 15 Feb 2002 15:01:11 -0500


Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv14627

Modified Files:
	PageTemplate.py 
Log Message:
Prevent macro expansion errors if we aren't supposed to be expanding
(Collector #221)

=== Releases/Zope/lib/python/Products/PageTemplates/PageTemplate.py 1.20 => 1.21 ===
         if err:
             return err
+        if not self.expand: return
         try:
             self.pt_render(source=1)
         except: