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
2824d676
Commit
2824d676
authored
Aug 18, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: continue removal of actbox_xxx in interactions
parent
31f2ef9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+4
-4
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
2824d676
...
@@ -404,9 +404,9 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
...
@@ -404,9 +404,9 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
# 1. Interaction as XML
# 1. Interaction as XML
interaction_reference_list
=
[]
interaction_reference_list
=
[]
interaction_list
=
self
.
objectValues
(
portal_type
=
'Interaction'
)
interaction_list
=
self
.
objectValues
(
portal_type
=
'Interaction'
)
interaction_prop_id_to_show
=
sorted
([
'act
box_category'
,
'actbox_url'
,
'actbox
_name'
,
interaction_prop_id_to_show
=
sorted
([
'act
ivate_script
_name'
,
'a
ctivate_script_name'
,
'after_script_name'
,
'before_commit_script_name
'
,
'a
fter_script_name'
,
'before_commit_script_name'
,
'description
'
,
'
description'
,
'
groups'
,
'roles'
,
'expr'
,
'permissions'
,
'trigger_method_id'
,
'groups'
,
'roles'
,
'expr'
,
'permissions'
,
'trigger_method_id'
,
'trigger_once_per_transaction'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'trigger_once_per_transaction'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'script_name'
,
'temporary_document_disallowed'
,
'trigger_type'
])
'script_name'
,
'temporary_document_disallowed'
,
'trigger_type'
])
for
tdef
in
interaction_list
:
for
tdef
in
interaction_list
:
...
@@ -432,7 +432,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
...
@@ -432,7 +432,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
property_value
=
tdef
.
getGuardExpression
()
property_value
=
tdef
.
getGuardExpression
()
sub_object
=
SubElement
(
guard
,
property_id
,
attrib
=
dict
(
type
=
'guard configuration'
))
sub_object
=
SubElement
(
guard
,
property_id
,
attrib
=
dict
(
type
=
'guard configuration'
))
# no-property definded action box configuration
# no-property definded action box configuration
elif
property_id
in
[
'actbox_name'
,
'actbox_url'
,
'actbox_category'
,
'trigger_type'
]
:
elif
property_id
==
'trigger_type'
:
property_value
=
getattr
(
tdef
,
property_id
,
None
)
property_value
=
getattr
(
tdef
,
property_id
,
None
)
sub_object
=
SubElement
(
interaction
,
property_id
,
attrib
=
dict
(
type
=
'string'
))
sub_object
=
SubElement
(
interaction
,
property_id
,
attrib
=
dict
(
type
=
'string'
))
elif
property_id
in
[
'activate_script_name'
,
'after_script_name'
,
elif
property_id
in
[
'activate_script_name'
,
'after_script_name'
,
...
...
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