[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PageTemplates - CHANGES.txt:1.21 ZopePageTemplate.py:1.25

Evan Simpson evan@zope.com
Fri, 26 Oct 2001 14:52:07 -0400


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

Modified Files:
	CHANGES.txt ZopePageTemplate.py 
Log Message:
Make standard properties undeletable


=== Releases/Zope/lib/python/Products/PageTemplates/CHANGES.txt 1.20 => 1.21 ===
 
         - In the ZMI, errors are separated from the text and highlighted.
+
+        - A template can be marked explicitly as XML or HTML by giving
+        it a boolean 'is_html' property.
+
+      Bugs Fixed
+
+        - The starting properties could be deleted.  This is only
+        fixed for new templates.


=== Releases/Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.24 => 1.25 ===
         + Cacheable.manage_options
 
-    _properties=({'id':'title', 'type': 'string'},
-                 {'id':'content_type', 'type':'string'},
-                 {'id':'expand', 'type':'boolean'},
+    _properties=({'id':'title', 'type': 'string', 'mode': 'w'},
+                 {'id':'content_type', 'type':'string', 'mode': 'w'},
+                 {'id':'expand', 'type':'boolean', 'mode': 'w'},
                  )
 
     def __init__(self, id, text=None, content_type=None):
@@ -355,8 +355,8 @@
 d['source.xml'] = d['source.html'] = Src()
 
 # Product registration and Add support
-manage_addPageTemplateForm = PageTemplateFile('www/ptAdd', globals())
-manage_addPageTemplateForm.__name__ = 'manage_addPageTemplateForm'
+manage_addPageTemplateForm = PageTemplateFile(
+    'www/ptAdd', globals(), __name__='manage_addPageTemplateForm')
 
 from urllib import quote