Commit c779d90a authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Add _delPropValue function to Base so not to use the similar...

bt5_config: Add _delPropValue function to Base so not to use the similar function from OFS.ObjectManager which is more for attributes deletion rather than property deletion
parent 3ef738e3
......@@ -787,6 +787,13 @@ class Base( CopyContainer,
pformat(rev1.__dict__),
pformat(rev2.__dict__)))
def _delPropValue(self, property_name):
if self.hasProperty(property_name):
value = None
if property_name.endswith('_list'):
value = []
self._setPropValue(property_name, value)
def _aq_dynamic(self, id):
# ahah! disabled, thanks to portal type classes
return None
......
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