[CMF-checkins] CVS: Products/CMFCore - TypesTool.py:1.76
Florent Guillaume
fg at nuxeo.com
Fri Sep 3 12:36:22 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv12850
Modified Files:
TypesTool.py
Log Message:
Allow adding new properties to TypeInformation objects through the ZMI.
=== Products/CMFCore/TypesTool.py 1.75 => 1.76 ===
--- Products/CMFCore/TypesTool.py:1.75 Thu Aug 26 04:04:11 2004
+++ Products/CMFCore/TypesTool.py Fri Sep 3 12:36:17 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