[CMF-checkins] CVS: Products/CMFCore - TypesTool.py:1.74.2.2
Florent Guillaume
fg at nuxeo.com
Fri Sep 3 12:31:47 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv11126
Modified Files:
Tag: CMF-1_5-branch
TypesTool.py
Log Message:
Allow TTW adding of new properties to TypeInformation objects.
=== Products/CMFCore/TypesTool.py 1.74.2.1 => 1.74.2.2 ===
--- Products/CMFCore/TypesTool.py:1.74.2.1 Thu Aug 26 04:03:40 2004
+++ Products/CMFCore/TypesTool.py Fri Sep 3 12:31:42 2004
@@ -25,6 +25,7 @@
from Globals import DTMLFile
from Globals import InitializeClass
from OFS.Folder import Folder
+from OFS.PropertyManager import PropertyManager
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from zLOG import LOG, ERROR
import Products
@@ -69,6 +70,11 @@
security.declareProtected(ManagePortal, 'manage_editProperties')
security.declareProtected(ManagePortal, 'manage_changeProperties')
security.declareProtected(ManagePortal, 'manage_propertiesForm')
+
+ # Overload the schema freezing of SimpleItemWithProperties
+ security.declareProtected(ManagePortal, 'manage_addProperty')
+ security.declareProtected(ManagePortal, 'manage_delProperties')
+ manage_propertiesForm = PropertyManager.manage_propertiesForm
_basic_properties = (
{'id':'title', 'type': 'string', 'mode':'w',
More information about the CMF-checkins
mailing list