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
37409369
Commit
37409369
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: add script proxy_roles in showAsXML.
parent
7cf98fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+7
-7
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
37409369
...
@@ -505,10 +505,6 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
...
@@ -505,10 +505,6 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
for
value
in
property_value
:
for
value
in
property_value
:
list_temp
.
append
(
self
.
_getOb
(
value
).
getReference
())
list_temp
.
append
(
self
.
_getOb
(
value
).
getReference
())
property_value
=
list_temp
property_value
=
list_temp
if
property_id
in
[
'once_per_transaction'
,
'temporary_document_disallowed'
]:
if
property_value
==
0
:
property_value
=
False
else
:
property_value
=
True
sub_object
=
SubElement
(
interaction
,
property_id
,
attrib
=
dict
(
type
=
'string'
))
sub_object
=
SubElement
(
interaction
,
property_id
,
attrib
=
dict
(
type
=
'string'
))
else
:
else
:
property_value
=
tdef
.
getProperty
(
property_id
)
property_value
=
tdef
.
getProperty
(
property_id
)
...
@@ -550,7 +546,7 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
...
@@ -550,7 +546,7 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
# 3. Script as XML
# 3. Script as XML
script_reference_list
=
[]
script_reference_list
=
[]
script_list
=
self
.
objectValues
(
portal_type
=
'Workflow Script'
)
script_list
=
self
.
objectValues
(
portal_type
=
'Workflow Script'
)
script_prop_id_to_show
=
sorted
([
'body'
,
'parameter_signature'
])
script_prop_id_to_show
=
sorted
([
'body'
,
'parameter_signature'
,
'proxy_roles'
])
for
sdef
in
script_list
:
for
sdef
in
script_list
:
script_reference_list
.
append
(
sdef
.
getReference
())
script_reference_list
.
append
(
sdef
.
getReference
())
scripts
=
SubElement
(
interaction_workflow
,
'scripts'
,
attrib
=
dict
(
script_list
=
str
(
script_reference_list
),
scripts
=
SubElement
(
interaction_workflow
,
'scripts'
,
attrib
=
dict
(
script_list
=
str
(
script_reference_list
),
...
@@ -559,8 +555,12 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
...
@@ -559,8 +555,12 @@ class InteractionWorkflow(IdAsReferenceMixin("interactionworkflow_", "prefix"),
script
=
SubElement
(
scripts
,
'script'
,
attrib
=
dict
(
reference
=
sdef
.
getReference
(),
script
=
SubElement
(
scripts
,
'script'
,
attrib
=
dict
(
reference
=
sdef
.
getReference
(),
portal_type
=
sdef
.
getPortalType
()))
portal_type
=
sdef
.
getPortalType
()))
for
property_id
in
script_prop_id_to_show
:
for
property_id
in
script_prop_id_to_show
:
property_value
=
sdef
.
getProperty
(
property_id
)
if
property_id
==
'proxy_roles'
:
property_type
=
sdef
.
getPropertyType
(
property_id
)
property_value
=
tuple
(
sdef
.
getProperty
(
'proxy_role_list'
))
property_type
=
sdef
.
getPropertyType
(
'proxy_role_list'
)
else
:
property_value
=
sdef
.
getProperty
(
property_id
)
property_type
=
sdef
.
getPropertyType
(
property_id
)
sub_object
=
SubElement
(
script
,
property_id
,
attrib
=
dict
(
type
=
property_type
))
sub_object
=
SubElement
(
script
,
property_id
,
attrib
=
dict
(
type
=
property_type
))
sub_object
.
text
=
str
(
property_value
)
sub_object
.
text
=
str
(
property_value
)
...
...
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