[Erp5-report] r39433 yo - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 21 12:33:30 CEST 2010
Author: yo
Date: Thu Oct 21 12:33:27 2010
New Revision: 39433
URL: http://svn.erp5.org?rev=39433&view=rev
Log:
Skip KeyError due to a missing interaction workflow as a workaround. It is necessary to do a bit differently later, probably using an interactor rather than an interaction workflow.
Modified:
erp5/trunk/products/ERP5Type/ERP5Type.py
Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=39433&r1=39432&r2=39433&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Thu Oct 21 12:33:27 2010
@@ -439,7 +439,13 @@ class ERP5TypeInformation(XMLObject,
if init_script and init_script.startswith('add'):
base = init_script[3:]
# and of course migrate the property
- self.setTypeClass(base)
+ try:
+ self.setTypeClass(base)
+ except KeyError:
+ # Unfortunately, the above setter may trigger an interaction,
+ # but the interaction workflow may not be present yet at the
+ # bootstrap time, thus simply ignore such an error for now.
+ pass
return base
security.declareProtected(Permissions.AccessContentsInformation,
More information about the Erp5-report
mailing list