diff -r d7f85fd197df -r 968f00dd9a24 web/views/treeview.py --- a/web/views/treeview.py Fri Feb 20 15:33:43 2009 +0100 +++ b/web/views/treeview.py Fri Feb 20 20:48:33 2009 +0100 @@ -1,38 +1,32 @@ from logilab.mtconverter import html_escape - from cubicweb.interfaces import ITree from cubicweb.common.selectors import implement_interface, yes from cubicweb.common.view import EntityView -from cubicweb.web.views.baseviews import OneLineView - class TreeView(EntityView): id = 'treeview' accepts = ('Any',) itemvid = 'treeitemview' css_classes = 'treeview widget' title = _('tree view') - - def call(self, subvid=None): + + def call(self, subvid=None, treeid=None): if subvid is None and 'subvid' in self.req.form: subvid = self.req.form.pop('subvid') # consume it if subvid is None: subvid = 'oneline' self.req.add_css('jquery.treeview.css') - self.req.add_js(('cubicweb.ajax.js', 'jquery.treeview.js', 'cubicweb.widgets.js')) - # XXX noautoload is a quick hack to avoid treeview to be rebuilt - # after a json query and avoid double toggling bugs. - # Need to find a way to do that cleanly. - if 'noautoload' in self.req.form: - self.w(u'