Commit cea80e9a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not fail if a ZODB Property Sheet is missing, just skip it



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43658 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4a77cfd
......@@ -87,14 +87,20 @@ def _createAccessorHolderList(site,
accessor_holder_list.append(getattr(accessor_holder, property_sheet_name))
except AttributeError:
# Generate the accessor holder as it has not been done yet
try:
property_sheet = getPropertySheet(property_sheet_name)
accessor_holder_class = property_sheet.createAccessorHolder()
except KeyError:
LOG("ERP5Type.dynamic", WARNING,
"Ignoring missing Property Sheet " + property_sheet_name)
continue
# Generate the accessor holder as it has not been done yet
try:
accessor_holder_class = property_sheet.createAccessorHolder()
except Exception:
LOG("ERP5Type.dynamic", ERROR,
"Ignoring missing or Invalid Property Sheet " + property_sheet_name)
"Invalid Property Sheet " + property_sheet_name)
raise
accessor_holder_list.append(accessor_holder_class)
......
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