# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1280224361 -7200
#      Tue Jul 27 11:52:41 2010 +0200
# Node ID 96294d425e765474de9a2590dbeaad9a3accd39d
# Parent  e4db834f9a38f24fb71895d88d0ba0b034164d17
more api update

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -14,7 +14,7 @@
 from logilab.mtconverter import xml_escape
 from logilab.common.decorators import monkeypatch
 
-from cubicweb.web import dumps
+from cubicweb.utils import json_dumps
 
 from cubicweb.selectors import (is_instance, has_permission, authenticated_user,
                                 score_entity, relation_possible, one_line_rset,
@@ -222,7 +222,7 @@
             self.propose_to_login()
         # hack to avoid tabindex conflicts caused by Ajax requests
         self._cw.next_tabindex = count(20).next
-        jseid = dumps(commented.eid)
+        jseid = json_dumps(commented.eid)
         buttons = [fw.Button(onclick=self.jsfunc % (jseid, 'false')),
                    fw.Button(stdmsgs.BUTTON_CANCEL,
                              onclick=self.jsfunc % (jseid, 'true'))]
@@ -247,8 +247,7 @@
         self.w(u'<div id="comment%sSlot">%s</div>' % (
             commented.eid, form.render(formvalues=formvalues,
                                        main_form_title=u'',
-                                       display_label=False,
-                                       display_relations_form=False)))
+                                       display_label=False)))
 
 
 class InlineAddCommentFormView(InlineEditCommentFormView):