Commit 213e0615 authored by Łukasz Nowak's avatar Łukasz Nowak

- _properties in property sheets are optional


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30976 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77a82d6f
...@@ -428,7 +428,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -428,7 +428,7 @@ class ERP5TypeInformation(XMLObject,
property_list = list(getattr(ob.__class__, '_properties', [])) property_list = list(getattr(ob.__class__, '_properties', []))
self.updatePropertySheetDefinitionDict({'_properties': property_list}) self.updatePropertySheetDefinitionDict({'_properties': property_list})
for property_sheet in getClassPropertyList(ob.__class__): for property_sheet in getClassPropertyList(ob.__class__):
property_list += property_sheet._properties property_list += getattr(property_sheet, '_properties', () )
return_set = set() return_set = set()
for property in property_list: for property in property_list:
......
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