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
d1eb3e23
Commit
d1eb3e23
authored
Jul 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InteractionWorkflow.py: fix Null property_value in showAsXML.
parent
4ffafb6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+4
-0
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
d1eb3e23
...
@@ -456,6 +456,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -456,6 +456,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
prop_value
=
self
.
getProperty
(
prop_id
)
prop_value
=
self
.
getProperty
(
prop_id
)
prop_type
=
self
.
getPropertyType
(
prop_id
)
prop_type
=
self
.
getPropertyType
(
prop_id
)
sub_object
=
SubElement
(
interaction_workflow
,
prop_id
,
attrib
=
dict
(
type
=
prop_type
))
sub_object
=
SubElement
(
interaction_workflow
,
prop_id
,
attrib
=
dict
(
type
=
prop_type
))
if
prop_value
is
None
or
prop_value
==
[]
or
prop_value
==
():
prop_value
=
''
sub_object
.
text
=
str
(
prop_value
)
sub_object
.
text
=
str
(
prop_value
)
# 1. Interaction as XML
# 1. Interaction as XML
...
@@ -569,6 +571,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -569,6 +571,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
property_value
=
sdef
.
getProperty
(
property_id
)
property_value
=
sdef
.
getProperty
(
property_id
)
property_type
=
sdef
.
getPropertyType
(
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
))
if
property_value
is
None
or
property_value
==
[]
or
property_value
==
():
property_value
=
''
sub_object
.
text
=
str
(
property_value
)
sub_object
.
text
=
str
(
property_value
)
# return xml object
# return xml object
...
...
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