Commit e82c919e authored by 's avatar

First whack at propertysheets.

parent 0c4d2676
......@@ -84,7 +84,7 @@
##############################################################################
"""Property management"""
__version__='$Revision: 1.9 $'[11:-2]
__version__='$Revision: 1.10 $'[11:-2]
from ZPublisher.Converters import type_converters
......@@ -95,7 +95,7 @@ from Acquisition import Implicit
from Globals import Persistent
from DateTime import DateTime
from PropertySheets import vps
class PropertyManager:
"""
......@@ -159,6 +159,9 @@ class PropertyManager:
_properties=({'id':'title', 'type': 'string', 'mode':'w'},)
_reserved_names=()
__propsets__=()
propertysheets=vps()
def valid_property_id(self, id):
if not id or id[:1]=='_' or (' ' in id) \
or hasattr(self.aq_base, id):
......@@ -316,3 +319,4 @@ class PropertyManager:
if REQUEST is not None:
return self.manage_propertiesForm(self, REQUEST)
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment