12 from cubicweb.selectors import implements |
12 from cubicweb.selectors import implements |
13 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem |
13 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem |
14 from cubicweb.web import uicfg, action, box, formwidgets |
14 from cubicweb.web import uicfg, action, box, formwidgets |
15 from cubicweb.web.views.baseviews import PrimaryView |
15 from cubicweb.web.views.baseviews import PrimaryView |
16 |
16 |
17 uicfg.rcategories.set_rtag('primary', 'path', 'subject', 'Bookmark') |
17 uicfg.rcategories.tag_relation('primary', ('Bookmark', 'path', '*'), 'subject') |
18 uicfg.rwidgets.set_rtag(formwidgets.TextInput, 'path', 'subject', 'Bookmark') |
18 uicfg.rwidgets.tag_relation(formwidgets.TextInput, ('Bookmark', 'path', '*'), 'subject') |
19 |
19 |
20 |
20 |
21 class FollowAction(action.Action): |
21 class FollowAction(action.Action): |
22 id = 'follow' |
22 id = 'follow' |
23 __select__ = implements('Bookmark') |
23 __select__ = implements('Bookmark') |