Commit 83ab81f9 authored by wenjie.zheng's avatar wenjie.zheng

patches/States.py: add addPossibleTransition which acts as an universal method...

patches/States.py: add addPossibleTransition which acts as an universal method for both types of workflow.
parent 6b8b8a06
......@@ -42,6 +42,10 @@ def setProperties(self, title='', transitions=(), REQUEST=None, description='',
if REQUEST is not None:
return self.manage_properties(REQUEST, 'Properties changed.')
def addPossibleTransition(self, tr_ref):
self.transitions = self.transitions + (tr_ref,)
StateDefinition.addPossibleTransition = addPossibleTransition
StateDefinition._properties_form = _properties_form
StateDefinition.getAvailableTypeList = getAvailableTypeList
StateDefinition.setProperties = setProperties
......
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