[Zope-CVS] CVS: Products/PageDesign - PageDesign.py:1.9

Chris McDonough chrism@zope.com
Fri, 10 Jan 2003 00:33:43 -0500


Update of /cvs-repository/Products/PageDesign
In directory cvs.zope.org:/tmp/cvs-serv5039

Modified Files:
	PageDesign.py 
Log Message:
Allow page designs to be viewed directly by not requiring 'preview' in
keywords passed to 'render'.


=== Products/PageDesign/PageDesign.py 1.8 => 1.9 ===
--- Products/PageDesign/PageDesign.py:1.8	Thu Aug 15 23:35:06 2002
+++ Products/PageDesign/PageDesign.py	Fri Jan 10 00:33:41 2003
@@ -371,7 +371,7 @@
             kw['slots'] = sp
             kw['design'] = self
             res = template(**kw)
-            if editable or kw['preview']:
+            if editable or kw.get('preview'):
                 res = self.insertEditScripts(res)
             return res
         finally: