Commit 9f90a777 authored by Łukasz Nowak's avatar Łukasz Nowak

Keep data compatibility.

Convert to XML.
parent 8c0a5431
......@@ -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,6 +120,9 @@ class InstancePublisher(GenericPublisher):
('status', 'state')
):
try:
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.'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment