[views] TreePathMixIn is deprecated, use TreePathView insted
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 06 Dec 2010 11:14:21 +0100
changeset 114 0df3c717f5eb
parent 113 45a0bff67d7e
child 115 4e3061d723fd
[views] TreePathMixIn is deprecated, use TreePathView insted
views.py
--- a/views.py	Sun Aug 01 22:15:12 2010 +0200
+++ b/views.py	Mon Dec 06 11:14:21 2010 +0100
@@ -12,9 +12,8 @@
 from cubicweb import Unauthorized
 from cubicweb.selectors import is_instance, rql_condition, relation_possible
 from cubicweb.view import EntityView
-from cubicweb.mixins import TreePathMixIn
 from cubicweb.web import stdmsgs, uicfg, component, facet
-from cubicweb.web.views import primary, basecontrollers
+from cubicweb.web.views import primary, basecontrollers, treeview
 
 
 _pvs = uicfg.primaryview_section
@@ -57,7 +56,7 @@
         self.wview('treeview', rset, 'null')
 
 
-class KeywordComboBoxView(TreePathMixIn, EntityView):
+class KeywordComboBoxView(treeview.TreePathView):
     """display keyword in edition's combobox"""
     __regid__ = 'combobox'
     __select__ = is_instance('Keyword', 'Classification')