Commit 0bd0d804 authored by Gabriel Monnerat's avatar Gabriel Monnerat

remove deprecated import

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 26df1b1e
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
<value> <string>from json import dumps\n
\n
catalog_object = context.portal_catalog.getResultValue(path=path)\n
\n
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
<value> <string>from json import dumps\n
\n
if context.portal_membership.isAnonymousUser():\n
return dumps(None)\n
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
<value> <string>from json import dumps\n
\n
catalog_object = context.portal_catalog.getResultValue(path=document_path)\n
document = context.restrictedTraverse(catalog_object.getPath())\n
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
<value> <string>from json import dumps\n
\n
portal = context.getPortalObject()\n
form = context.REQUEST.form\n
......
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.JSONEncoder import encodeInJson as dumps\n
from json import dumps\n
\n
gadget_list = context.portal_catalog(portal_type="Gadget")\n
\n
......
277
\ No newline at end of file
278
\ 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