Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Noah Brackenbury
erp5
Commits
beea9d1b
Commit
beea9d1b
authored
May 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DCWorkflow.py: revert unused modifications added during development.
parent
9ce212ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
product/ERP5Type/patches/DCWorkflow.py
product/ERP5Type/patches/DCWorkflow.py
+5
-0
No files found.
product/ERP5Type/patches/DCWorkflow.py
View file @
beea9d1b
...
...
@@ -63,6 +63,7 @@ def WorkflowUIMixin_setProperties( self, title
WorkflowUIMixin_class
.
setProperties
=
WorkflowUIMixin_setProperties
WorkflowUIMixin_class
.
manage_properties
=
DTMLFile
(
'workflow_properties'
,
_dtmldir
)
def
Guard_checkWithoutRoles
(
self
,
sm
,
wf_def
,
ob
,
**
kw
):
"""Checks conditions in this guard.
This function is the same as Guard.check, but roles are not taken
...
...
@@ -109,6 +110,7 @@ def Guard_checkWithoutRoles(self, sm, wf_def, ob, **kw):
return
0
return
1
def
DCWorkflowDefinition_listGlobalActions
(
self
,
info
):
'''
Allows this workflow to
...
...
@@ -207,6 +209,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
user
=
str
(
_getAuthenticatedUser
(
self
))
return
_listGlobalActions
(
user
=
user
,
id
=
self
.
id
,
portal_path
=
self
.
_getPortalRoot
().
getPhysicalPath
())
DCWorkflowDefinition
.
listGlobalActions
=
DCWorkflowDefinition_listGlobalActions
# Patches over original listObjectActions:
...
...
@@ -349,6 +352,7 @@ DCWorkflow.ValidationFailed = ValidationFailed
ModuleSecurityInfo
(
'Products.DCWorkflow.DCWorkflow'
).
declarePublic
(
'ValidationFailed'
)
# Patch excecuteTransition from DCWorkflowDefinition, to put ValidationFailed
# error messages in workflow history.
def
DCWorkflowDefinition_executeTransition
(
self
,
ob
,
tdef
=
None
,
kwargs
=
None
):
...
...
@@ -578,6 +582,7 @@ def DCWorkflowDefinition_wrapWorkflowMethod(self, ob, method_id, func, args, kw)
DCWorkflowDefinition
.
wrapWorkflowMethod
=
DCWorkflowDefinition_wrapWorkflowMethod
# Patch updateRoleMappingsFor so that if 2 workflows define security, then we
# should do an AND operation between each permission
def
updateRoleMappingsFor
(
self
,
ob
):
...
...
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