web/views/bookmark.py
changeset 3720 5376aaadd16b
parent 3451 6b46d73823f5
parent 3718 ae49707df724
child 4045 f4a52abb6f4f
--- a/web/views/bookmark.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/views/bookmark.py	Mon Oct 19 15:16:41 2009 +0200
@@ -10,7 +10,7 @@
 from logilab.mtconverter import xml_escape
 
 from cubicweb import Unauthorized
-from cubicweb.selectors import implements
+from cubicweb.selectors import implements, one_line_rset
 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
 from cubicweb.web import action, box, uicfg
 from cubicweb.web.views import primary
@@ -21,7 +21,7 @@
 
 class FollowAction(action.Action):
     __regid__ = 'follow'
-    __select__ = implements('Bookmark')
+    __select__ = one_line_rset() & implements('Bookmark')
 
     title = _('follow')
     category = 'mainactions'