web/views/bookmark.py
changeset 5877 0c7b7b76a84f
parent 5658 7b9553a9db65
child 6039 6e84db1b3e44
--- a/web/views/bookmark.py	Fri Jul 02 19:14:48 2010 +0200
+++ b/web/views/bookmark.py	Mon Jul 05 12:04:32 2010 +0200
@@ -23,7 +23,7 @@
 from logilab.mtconverter import xml_escape
 
 from cubicweb import Unauthorized
-from cubicweb.selectors import implements, one_line_rset
+from cubicweb.selectors import is_instance, one_line_rset
 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
 from cubicweb.web import action, box, uicfg, formwidgets as fw
 from cubicweb.web.views import primary
@@ -43,7 +43,7 @@
 
 class FollowAction(action.Action):
     __regid__ = 'follow'
-    __select__ = one_line_rset() & implements('Bookmark')
+    __select__ = one_line_rset() & is_instance('Bookmark')
 
     title = _('follow')
     category = 'mainactions'
@@ -53,7 +53,7 @@
 
 
 class BookmarkPrimaryView(primary.PrimaryView):
-    __select__ = implements('Bookmark')
+    __select__ = is_instance('Bookmark')
 
     def cell_call(self, row, col):
         """the primary view for bookmark entity"""