Commit 5ddb8c34 authored by Aurel's avatar Aurel

fix patch

parent 172e0d50
...@@ -37,12 +37,12 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D ...@@ -37,12 +37,12 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D
+ ''' + '''
+ sdef = self._getWorkflowStateOf(ob) + sdef = self._getWorkflowStateOf(ob)
+ if sdef is None: + if sdef is None:
+ raise WorkflowException, 'Object is in an undefined state' + raise WorkflowException('Object is in an undefined state')
+ if method_id not in sdef.transitions: + if method_id not in sdef.transitions:
+ raise Unauthorized(method_id) + raise Unauthorized(method_id)
+ tdef = self.transitions.get(method_id, None) + tdef = self.transitions.get(method_id, None)
+ if tdef is None or tdef.trigger_type != TRIGGER_WORKFLOW_METHOD: + if tdef is None or tdef.trigger_type != TRIGGER_WORKFLOW_METHOD:
+ raise WorkflowException, ( + raise WorkflowException(
+ 'Transition %s is not triggered by a workflow method' + 'Transition %s is not triggered by a workflow method'
+ % method_id) + % method_id)
+ if not self._checkTransitionGuard(tdef, ob): + if not self._checkTransitionGuard(tdef, ob):
......
...@@ -38,7 +38,7 @@ eggs = ...@@ -38,7 +38,7 @@ eggs =
#Products.StandardCacheManagers #Products.StandardCacheManagers
#Products.ZCatalog #Products.ZCatalog
#Record #Record
Products.DCWorkflow-patches = ${:_profile_base_location_}/../../component/egg-patch/Products.DCWorkflow/workflow_method.patch#975b49e96bae33ac8563454fe5fa9899 Products.DCWorkflow-patches = ${:_profile_base_location_}/../../component/egg-patch/Products.DCWorkflow/workflow_method.patch#7908d849d453a23c321a1a838abddadc
Products.DCWorkflow-patch-options = -p1 Products.DCWorkflow-patch-options = -p1
......
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