Commit cb32837e authored by Aurel's avatar Aurel

check kw is not None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3d8d30c
......@@ -47,7 +47,11 @@ def DCWorkflowDefinition_notifyWorkflowMethod(self, ob, method_id, args=None, kw
raise Unauthorized(method_id)
self._changeStateOf(ob, tdef, kw)
if getattr(ob, 'reindexObject', None) is not None:
ob.reindexObject(activate_kw=kw.get('activate_kw', {}))
if kw is not None:
activate_kw = kw.get('activate_kw', {})
else:
activate_kw = {}
ob.reindexObject(activate_kw=activate_kw)
def DCWorkflowDefinition_notifyBefore(self, ob, action, args=None, kw=None, transition_list=None):
'''
......
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