web/component.py
branchtls-sprint
changeset 670 6c332f5c969c
parent 661 4f61eb8a96b7
child 681 7cb402fa3958
equal deleted inserted replaced
669:5d2132832f03 670:6c332f5c969c
    12     paginated_rset, one_line_rset, primary_view, match_context_prop,
    12     paginated_rset, one_line_rset, primary_view, match_context_prop,
    13     condition_compat, accepts_compat, has_relation_compat)
    13     condition_compat, accepts_compat, has_relation_compat)
    14 from cubicweb.common.appobject import Component
    14 from cubicweb.common.appobject import Component
    15 from cubicweb.common.utils import merge_dicts
    15 from cubicweb.common.utils import merge_dicts
    16 from cubicweb.common.view import View
    16 from cubicweb.common.view import View
    17 from cubicweb.common.registerers import action_registerer
    17 from cubicweb.common.registerers import accepts_registerer
    18 from cubicweb.common.uilib import html_escape
    18 from cubicweb.common.uilib import html_escape
    19 
    19 
    20 _ = unicode
    20 _ = unicode
    21 
    21 
    22 class EntityVComponent(Component):
    22 class EntityVComponent(Component):
    29     it should be configured using .accepts, .etype, .rtype, .target and
    29     it should be configured using .accepts, .etype, .rtype, .target and
    30     .context class attributes
    30     .context class attributes
    31     """
    31     """
    32     
    32     
    33     __registry__ = 'contentnavigation'
    33     __registry__ = 'contentnavigation'
    34     __registerer__ = action_registerer    
    34     __registerer__ = accepts_registerer    
    35     __selectors__ = (one_line_rset, primary_view, match_context_prop,)
    35     __selectors__ = (one_line_rset, primary_view, match_context_prop,)
    36     registered = accepts_compat(has_relation_compat(condition_compat(View.registered.im_func)))
    36     registered = accepts_compat(has_relation_compat(condition_compat(View.registered.im_func)))
    37     
    37     
    38     property_defs = {
    38     property_defs = {
    39         _('visible'):  dict(type='Boolean', default=True,
    39         _('visible'):  dict(type='Boolean', default=True,