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