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

added convertToMixedCase in workflow script ids (generated from wf method transitions)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6b99b54
......@@ -648,12 +648,13 @@ DCWorkflowDefinition._executeTransition = ERP5DCWorkflowDefinition._executeTrans
# as well as workflow inheritance. This way, different user actions and dialogs can be specified easliy
# For now, we split UI transitions and logics transitions so that UI can be different and logics the same
from Products.DCWorkflow.Transitions import TransitionDefinition
from Products.ERP5Type.Utils import convertToMixedCase
class ERP5TransitionDefinition (TransitionDefinition):
def getAvailableScriptIds(self):
return self.getWorkflow().scripts.keys() + filter(
lambda k: self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD, self.getWorkflow().transitions.keys())
return self.getWorkflow().scripts.keys() + map(lambda tid: convertToMixedCase(tid), filter(
lambda k: self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD, self.getWorkflow().transitions.keys()))
TransitionDefinition.getAvailableScriptIds = ERP5TransitionDefinition.getAvailableScriptIds
......
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