Commit 1669e89a authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: revert encode json string to use UTF-8

connection_value can also be a list.
parent bcbb5ea4
from Products.ERP5Type.Document import newTempBase
from Products.ERP5Type.Utils import unicode2str
import json
......@@ -23,9 +22,9 @@ if relative_url == None:
for k in sorted(connection_dict):
if raw:
d = {"connection_key": k, "connection_value": unicode2str(connection_dict[k])}
d = {"connection_key": k, "connection_value": connection_dict[k]}
else:
d = newTempBase(portal, relative_url)
d.edit(connection_key=k, connection_value=unicode2str(connection_dict[k]))
d.edit(connection_key=k, connection_value=connection_dict[k])
return_list.append(d)
return return_list
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