Commit 11dfd630 authored by Amos Latteier's avatar Amos Latteier

Add the ability to delete properties. Note: there still is a problem with

delattr and the _zclass_ class.
parent ab41a13c
......@@ -98,7 +98,13 @@ class ClassCaretaker:
if not klass._p_changed:
get_transaction().register(klass)
klass._p_changed=1
def __delattr__(self, name):
klass=self._k
delattr(klass, name)
if not klass._p_changed:
get_transaction().register(klass)
klass._p_changed=1
class ZCommonSheet(OFS.PropertySheets.PropertySheet, OFS.SimpleItem.Item):
"Property Sheet that has properties common to all instances"
meta_type="Common Instance Property Sheet"
......
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