web/views/bookmark.py
branchtls-sprint
changeset 1739 78b0819162a8
parent 1721 694f6a50e138
child 1977 606923dff11b
equal deleted inserted replaced
1738:2cfd50c8a415 1739:78b0819162a8
     9 from logilab.mtconverter import html_escape
     9 from logilab.mtconverter import html_escape
    10 
    10 
    11 from cubicweb import Unauthorized
    11 from cubicweb import Unauthorized
    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 action, box
    15 from cubicweb.web.views import primary
    15 from cubicweb.web.views import primary
    16 
       
    17 uicfg.rcategories.tag_attribute('!Bookmark', 'path', 'primary')
       
    18 uicfg.rwidgets.tag_attribute('Bookmark', 'path', formwidgets.TextInput)
       
    19 
    16 
    20 
    17 
    21 class FollowAction(action.Action):
    18 class FollowAction(action.Action):
    22     id = 'follow'
    19     id = 'follow'
    23     __select__ = implements('Bookmark')
    20     __select__ = implements('Bookmark')