fix #343304 stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 18 May 2009 14:08:21 +0200
branchstable
changeset 1841 d629a6fc33e5
parent 1840 f4b5c15d1147
child 1842 c7a22540d6f7
fix #343304
web/views/treeview.py
--- a/web/views/treeview.py	Mon May 18 13:49:28 2009 +0200
+++ b/web/views/treeview.py	Mon May 18 14:08:21 2009 +0200
@@ -13,7 +13,7 @@
 from cubicweb.interfaces import ITree
 from cubicweb.selectors import implements
 from cubicweb.view import EntityView
-from cubicweb.web.views.basecontrollers import JSonController
+from cubicweb.web.views.basecontrollers import jsonize, JSonController
 
 def treecookiename(treeid):
     return str('treestate-%s' % treeid)
@@ -149,8 +149,8 @@
             self.wview(parentvid, self.req.execute(rql), treeid=treeid, initial_load=False)
         w(u'</li>')
 
-
 @monkeypatch(JSonController)
+@jsonize
 def js_node_clicked(self, treeid, nodeeid):
     """add/remove eid in treestate cookie"""
     cookies = self.req.get_cookie()