Commit 48b9e09a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Use Python json instead of deprecated Products.ERP5Type.JSON.

parent 3c6f7297
......@@ -65,7 +65,7 @@ if portal_type is not None:\n
result = [o.title for o in context.portal_catalog(**kw)]\n
\n
\n
from Products.ERP5Type.JSON import dumps\n
from json import dumps\n
return dumps(result, indent=4)\n
</string> </value>
</item>
......
2014-01-21 arnaud.fontaine
* Use json instead of deprecated Products.ERP5Type.JSON.
2010-08-04 nicolas.dumazet
* Initial import.
\ No newline at end of file
7
\ No newline at end of file
8
\ No newline at end of file
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.collections import OrderedDict\n
from Products.ERP5Type.JSON import dumps\n
from json import dumps\n
label_list = context.getLabelValueList()\n
num = len(label_list)\n
result_list = []\n
......
2014-01-21 arnaud.fontaine
* Use json instead of deprecated Products.ERP5Type.JSON.
2010-10-13 Kazuhiko
* initial implementation.
\ No newline at end of file
2
\ No newline at end of file
3
\ No newline at end of file
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