diff -r a33402c1aa79 -r 0e3ae19b181a web/views/autoform.py --- a/web/views/autoform.py Thu Jul 08 12:54:28 2010 +0200 +++ b/web/views/autoform.py Thu Jul 08 13:33:40 2010 +0200 @@ -134,8 +134,9 @@ from cubicweb.selectors import ( match_kwargs, match_form_params, non_final_entity, specified_etype_implements) -from cubicweb.web import stdmsgs, uicfg, eid_param, dumps, \ - form as f, formwidgets as fw, formfields as ff +from cubicweb.utils import json_dumps +from cubicweb.web import (stdmsgs, uicfg, eid_param, + form as f, formwidgets as fw, formfields as ff) from cubicweb.web.views import forms _AFS = uicfg.autoform_section @@ -374,7 +375,7 @@ entities """ js = u"javascript: togglePendingDelete('%s', %s);" % ( - nodeid, xml_escape(dumps(eid))) + nodeid, xml_escape(json_dumps(eid))) return u'[%s]' % ( js, nodeid, label) @@ -475,7 +476,7 @@ w(u'