Commit 4d9d9479 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Skip KeyError due to a missing interaction workflow as a workaround. It is...

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39433 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e09e218
...@@ -439,7 +439,13 @@ class ERP5TypeInformation(XMLObject, ...@@ -439,7 +439,13 @@ class ERP5TypeInformation(XMLObject,
if init_script and init_script.startswith('add'): if init_script and init_script.startswith('add'):
base = init_script[3:] base = init_script[3:]
# and of course migrate the property # and of course migrate the property
try:
self.setTypeClass(base) 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 return base
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
......
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