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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
b092656b
Commit
b092656b
authored
Aug 31, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: do not create cells for state permission/role mapping
when converting workflow
parent
c4ade4da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
product/ERP5Workflow/Tool/WorkflowTool.py
product/ERP5Workflow/Tool/WorkflowTool.py
+1
-9
No files found.
product/ERP5Workflow/Tool/WorkflowTool.py
View file @
b092656b
...
@@ -376,15 +376,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -376,15 +376,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
state
.
setCellRange
(
sorted
(
sdef
.
permission_roles
.
keys
()),
state
.
setCellRange
(
sorted
(
sdef
.
permission_roles
.
keys
()),
sorted
(
workflow
.
getManagedRoleList
()),
sorted
(
workflow
.
getManagedRoleList
()),
base_id
=
'cell'
)
base_id
=
'cell'
)
i
=
-
1
for
permission
in
sorted
(
workflow
.
getWorkflowManagedPermissionList
()):
i
=
i
+
1
j
=
-
1
for
role
in
workflow
.
getManagedRoleList
():
j
=
j
+
1
pr_cell
=
state
.
newContent
(
id
=
'cell_%s_%s'
%
(
i
,
j
),
portal_type
=
'PermissionRoles'
)
if
permission
in
permission_roles
and
role
in
permission_roles
[
permission
]:
pr_cell
.
is_selected
=
1
# default state using category setter
# default state using category setter
state_path
=
getattr
(
workflow
,
'state_'
+
dc_workflow
.
initial_state
).
getPath
()
state_path
=
getattr
(
workflow
,
'state_'
+
dc_workflow
.
initial_state
).
getPath
()
state_path
=
'source/'
+
'/'
.
join
(
state_path
.
split
(
'/'
)[
2
:])
state_path
=
'source/'
+
'/'
.
join
(
state_path
.
split
(
'/'
)[
2
:])
...
...
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