Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Hardik Juneja
slapos.core
Commits
9f90a777
Commit
9f90a777
authored
May 02, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep data compatibility.
Convert to XML.
parent
8c0a5431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
master/product/Vifib/Tool/VifibRestApiV1Tool.py
master/product/Vifib/Tool/VifibRestApiV1Tool.py
+5
-1
No files found.
master/product/Vifib/Tool/VifibRestApiV1Tool.py
View file @
9f90a777
...
...
@@ -35,6 +35,7 @@ from Products.ERP5Type.Globals import InitializeClass
from
Products.ERP5Type
import
Permissions
from
ComputedAttribute
import
ComputedAttribute
from
zLOG
import
LOG
,
ERROR
import
xml_marshaller
import
json
import
transaction
...
...
@@ -119,7 +120,10 @@ class InstancePublisher(GenericPublisher):
(
'status'
,
'state'
)
):
try
:
request_dict
[
k_i
]
=
jbody
[
k_j
]
if
k_j
in
(
'sla'
,
'parameter'
):
request_dict
[
k_i
]
=
xml_marshaller
.
xml_marshaller
.
dumps
(
jbody
[
k_j
])
else
:
request_dict
[
k_i
]
=
jbody
[
k_j
]
except
KeyError
:
error_dict
[
k_j
]
=
'Missing.'
...
...
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