hide bookmarked_by relation from addrelated menu, we've a specific box for bookmarks 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 16 Sep 2009 16:34:34 +0200
branch3.5
changeset 3247 a6243d9585ba
parent 3246 9e4adca73a95
child 3248 db09803df8b2
hide bookmarked_by relation from addrelated menu, we've a specific box for bookmarks
web/views/bookmark.py
--- a/web/views/bookmark.py	Wed Sep 16 14:33:24 2009 +0200
+++ b/web/views/bookmark.py	Wed Sep 16 16:34:34 2009 +0200
@@ -12,9 +12,12 @@
 from cubicweb import Unauthorized
 from cubicweb.selectors import implements
 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
-from cubicweb.web import action, box
+from cubicweb.web import action, box, uicfg
 from cubicweb.web.views import primary
 
+_abaa = uicfg.actionbox_appearsin_addmenu
+_abaa.tag_subject_of(('*', 'bookmarked_by', '*'), False)
+_abaa.tag_object_of(('*', 'bookmarked_by', '*'), False)
 
 class FollowAction(action.Action):
     id = 'follow'