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 ...@@ -35,6 +35,7 @@ from Products.ERP5Type.Globals import InitializeClass
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from ComputedAttribute import ComputedAttribute from ComputedAttribute import ComputedAttribute
from zLOG import LOG, ERROR from zLOG import LOG, ERROR
import xml_marshaller
import json import json
import transaction import transaction
...@@ -119,6 +120,9 @@ class InstancePublisher(GenericPublisher): ...@@ -119,6 +120,9 @@ class InstancePublisher(GenericPublisher):
('status', 'state') ('status', 'state')
): ):
try: 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] request_dict[k_i] = jbody[k_j]
except KeyError: except KeyError:
error_dict[k_j] = 'Missing.' 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