Commit e523e6ac authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3368c48e
...@@ -150,7 +150,9 @@ class WorkflowMethod(Method): ...@@ -150,7 +150,9 @@ class WorkflowMethod(Method):
if valid_transition_list: if valid_transition_list:
valid_invoke_once_item_list.append((wf_id, valid_transition_list)) valid_invoke_once_item_list.append((wf_id, valid_transition_list))
candidate_transition_item_list = valid_invoke_once_item_list + \ candidate_transition_item_list = valid_invoke_once_item_list + \
self._invoke_once.get(portal_type, {}).items() self._invoke_always.get(portal_type, {}).items()
#LOG('candidate_transition_item_list %s' % self._id, 0, str(candidate_transition_item_list))
# Try to return immediately if there are no transition to invoke # Try to return immediately if there are no transition to invoke
if not candidate_transition_item_list: if not candidate_transition_item_list:
...@@ -170,6 +172,8 @@ class WorkflowMethod(Method): ...@@ -170,6 +172,8 @@ class WorkflowMethod(Method):
if valid_list: if valid_list:
valid_transition_item_list.append((wf_id, valid_list)) valid_transition_item_list.append((wf_id, valid_list))
#LOG('valid_transition_item_list %s' % self._id, 0, str(valid_transition_item_list))
# Call whatever must be called before changing states # Call whatever must be called before changing states
for wf_id, transition_list in candidate_transition_item_list: for wf_id, transition_list in candidate_transition_item_list:
wf[wf_id].notifyBefore(instance, self._id, args=args, kw=kw, transition_list=transition_list) wf[wf_id].notifyBefore(instance, self._id, args=args, kw=kw, transition_list=transition_list)
......
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