Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
bbad5dbf
Commit
bbad5dbf
authored
Jun 26, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InteractionWorkflow.py: correct the guard's attributes list format to tuple.
parent
43cd59fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+6
-1
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
bbad5dbf
...
...
@@ -470,10 +470,15 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
guard
=
SubElement
(
interaction
,
'guard'
,
attrib
=
dict
(
type
=
'object'
))
for
property_id
in
interaction_prop_id_to_show
:
# creationg guard
if
property_id
in
[
'groups'
,
'permissions'
,
'
expr'
,
'
roles'
]:
if
property_id
in
[
'groups'
,
'permissions'
,
'roles'
]:
if
property_id
==
'groups'
:
prop_id
=
'group_list'
if
property_id
==
'permissions'
:
prop_id
=
'permission_list'
if
property_id
==
'roles'
:
prop_id
=
'role_list'
property_value
=
tdef
.
getProperty
(
prop_id
)
if
property_value
is
not
None
:
property_value
=
tuple
(
property_value
)
sub_object
=
SubElement
(
guard
,
property_id
,
attrib
=
dict
(
type
=
'guard configuration'
))
elif
property_id
==
'expr'
:
property_value
=
tdef
.
getProperty
(
prop_id
)
sub_object
=
SubElement
(
guard
,
property_id
,
attrib
=
dict
(
type
=
'guard configuration'
))
# no-property definded action box configuration
...
...
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