web/views/ibreadcrumbs.py
changeset 5877 0c7b7b76a84f
parent 5722 61d6a4caa963
child 6141 b8287e54b528
--- a/web/views/ibreadcrumbs.py	Fri Jul 02 19:14:48 2010 +0200
+++ b/web/views/ibreadcrumbs.py	Mon Jul 05 12:04:32 2010 +0200
@@ -25,7 +25,7 @@
 from logilab.mtconverter import xml_escape
 
 #from cubicweb.interfaces import IBreadCrumbs
-from cubicweb.selectors import (implements, one_line_rset, adaptable,
+from cubicweb.selectors import (is_instance, one_line_rset, adaptable,
                                 one_etype_rset, multi_lines_rset, any_rset)
 from cubicweb.view import EntityView, Component, EntityAdapter
 # don't use AnyEntity since this may cause bug with isinstance() due to reloading
@@ -48,7 +48,7 @@
     the web ui
     """
     __regid__ = 'IBreadCrumbs'
-    __select__ = implements('Any', accept_none=False)
+    __select__ = is_instance('Any', accept_none=False)
 
     def parent_entity(self):
         if hasattr(self.entity, 'parent'):