equal
deleted
inserted
replaced
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 |