web/views/bookmark.py
branch3.5
changeset 3247 a6243d9585ba
parent 2996 866a2c135c33
child 3408 c92170fca813
child 3718 ae49707df724
equal deleted inserted replaced
3246:9e4adca73a95 3247:a6243d9585ba
    10 from logilab.mtconverter import xml_escape
    10 from logilab.mtconverter import xml_escape
    11 
    11 
    12 from cubicweb import Unauthorized
    12 from cubicweb import Unauthorized
    13 from cubicweb.selectors import implements
    13 from cubicweb.selectors import implements
    14 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
    14 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
    15 from cubicweb.web import action, box
    15 from cubicweb.web import action, box, uicfg
    16 from cubicweb.web.views import primary
    16 from cubicweb.web.views import primary
    17 
    17 
       
    18 _abaa = uicfg.actionbox_appearsin_addmenu
       
    19 _abaa.tag_subject_of(('*', 'bookmarked_by', '*'), False)
       
    20 _abaa.tag_object_of(('*', 'bookmarked_by', '*'), False)
    18 
    21 
    19 class FollowAction(action.Action):
    22 class FollowAction(action.Action):
    20     id = 'follow'
    23     id = 'follow'
    21     __select__ = implements('Bookmark')
    24     __select__ = implements('Bookmark')
    22 
    25