[Erp5-report] r43658 arnaud.fontaine - /erp5/trunk/products/ERP5Type/dynamic/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 24 11:51:33 CET 2011
Author: arnaud.fontaine
Date: Thu Feb 24 11:51:33 2011
New Revision: 43658
URL: http://svn.erp5.org?rev=43658&view=rev
Log:
Do not fail if a ZODB Property Sheet is missing, just skip it
Modified:
erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py
Modified: erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py?rev=43658&r1=43657&r2=43658&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] Thu Feb 24 11:51:33 2011
@@ -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)
More information about the Erp5-report
mailing list