Commit c30848e9 authored by Jim Fulton's avatar Jim Fulton

Added delete action to clean up properties if the sheet is deleted.

parent bb2e6955
......@@ -215,6 +215,9 @@ class ZCommonSheet(OFS.PropertySheets.PropertySheet, OFS.SimpleItem.Item):
return ''
def _on_delete_object(self):
for d in self._properties:
self.delClassAttr(d['id'])
def manage_createEditor(self, id, title='', REQUEST=None):
"""Create an edit interface for a 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