Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos
Commits
5ddb8c34
Commit
5ddb8c34
authored
Nov 26, 2020
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix patch
parent
172e0d50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
component/egg-patch/Products.DCWorkflow/workflow_method.patch
...onent/egg-patch/Products.DCWorkflow/workflow_method.patch
+2
-2
stack/erp5/buildout-py3.cfg
stack/erp5/buildout-py3.cfg
+1
-1
No files found.
component/egg-patch/Products.DCWorkflow/workflow_method.patch
View file @
5ddb8c34
...
@@ -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):
...
...
stack/erp5/buildout-py3.cfg
View file @
5ddb8c34
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment