Commit 188c1fe2 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Transition.py: repare the compatibility since the prefix has been deployed for...

Transition.py: repare the compatibility since the prefix has been deployed for new workflow tool objects.
parent 04c1c4cf
...@@ -278,7 +278,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject): ...@@ -278,7 +278,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
kwargs = form_kw kwargs = form_kw
# Script can be either script or workflow method # Script can be either script or workflow method
if script_id in old_sdef.getDestinationIdList(): if script_id in old_sdef.getDestinationIdList():
getattr(workflow, convertToMixedCase(script_id)).execute(document) getattr(workflow, script_id).execute(document)
else: else:
script = self.getParent()._getOb(script_id) script = self.getParent()._getOb(script_id)
# Pass lots of info to the script in a single parameter. # Pass lots of info to the script in a single parameter.
......
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