restrict follow action to one line rset stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 14:43:14 +0200
branchstable
changeset 3718 ae49707df724
parent 3717 a0cb4ed395f4
child 3719 7547fe738e54
restrict follow action to one line rset
web/views/bookmark.py
--- a/web/views/bookmark.py	Mon Oct 19 14:42:52 2009 +0200
+++ b/web/views/bookmark.py	Mon Oct 19 14:43:14 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):
     id = 'follow'
-    __select__ = implements('Bookmark')
+    __select__ = one_line_rset() & implements('Bookmark')
 
     title = _('follow')
     category = 'mainactions'