common/mixins.py
branchtls-sprint
changeset 692 800592b8d39b
parent 471 9dc392f05c65
child 728 a95b284150d1
--- a/common/mixins.py	Tue Feb 17 20:56:45 2009 +0100
+++ b/common/mixins.py	Tue Feb 17 21:29:58 2009 +0100
@@ -9,7 +9,7 @@
 
 from logilab.common.decorators import cached
 
-from cubicweb.common.selectors import implement_interface
+from cubicweb.selectors import implements
 from cubicweb.interfaces import IWorkflowable, IEmailable, ITree
 
 
@@ -315,8 +315,7 @@
     """a recursive tree view"""
     id = 'tree'
     item_vid = 'treeitem'
-    __selectors__ = (implement_interface,)
-    accepts_interfaces = (ITree,)
+    __selectors__ = implements(ITree)
 
     def call(self, done=None, **kwargs):
         if done is None: