Commit c0938296 authored by wenjie.zheng's avatar wenjie.zheng

patches/DCWorkflow.py: patch getParentWorkflowValue to DC transition.

parent 0e58167a
......@@ -1043,6 +1043,9 @@ def DCWorkflowDefinition_showAsXML(self, root=None):
return etree.tostring(root, encoding='utf-8',
xml_declaration=True, pretty_print=True)
def TransitionDefinition_getParentWorkflowValue(self):
return self.aq_parent.aq_parent
def DCWorkflowDefinition_getSourceValue(self):
return self.states[self.initial_state]
......@@ -1081,6 +1084,7 @@ StateDefinition.getReference = method_getReference
StateDefinition.getDestinationIdList = StateDefinition_getDestinationIdList
StateDefinition.getDestinationReferenceList = StateDefinition_getDestinationIdList
StateDefinition.showDict = DCWorkflowDefinition_showDict
TransitionDefinition.getParentWorkflowValue = TransitionDefinition_getParentWorkflowValue
TransitionDefinition.getReference = method_getReference
TransitionDefinition.showDict = DCWorkflowDefinition_showDict
VariableDefinition.getReference = method_getReference
......
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