web/component.py
changeset 2799 b703639614e7
parent 2381 caad2367d940
child 2819 b864288fd316
equal deleted inserted replaced
2798:9c650701cb17 2799:b703639614e7
    33 
    33 
    34     __registry__ = 'contentnavigation'
    34     __registry__ = 'contentnavigation'
    35     __select__ = one_line_rset() & primary_view() & match_context_prop()
    35     __select__ = one_line_rset() & primary_view() & match_context_prop()
    36     registered = accepts_compat(has_relation_compat(condition_compat(View.registered)))
    36     registered = accepts_compat(has_relation_compat(condition_compat(View.registered)))
    37 
    37 
    38     property_defs = {
    38     cw_property_defs = {
    39         _('visible'):  dict(type='Boolean', default=True,
    39         _('visible'):  dict(type='Boolean', default=True,
    40                             help=_('display the component or not')),
    40                             help=_('display the component or not')),
    41         _('order'):    dict(type='Int', default=99,
    41         _('order'):    dict(type='Int', default=99,
    42                             help=_('display order of the component')),
    42                             help=_('display order of the component')),
    43         _('context'):  dict(type='String', default='header',
    43         _('context'):  dict(type='String', default='header',
    61 class NavigationComponent(Component):
    61 class NavigationComponent(Component):
    62     """abstract base class for navigation components"""
    62     """abstract base class for navigation components"""
    63     id = 'navigation'
    63     id = 'navigation'
    64     __select__ = paginated_rset()
    64     __select__ = paginated_rset()
    65 
    65 
    66     property_defs = {
    66     cw_property_defs = {
    67         _('visible'):  dict(type='Boolean', default=True,
    67         _('visible'):  dict(type='Boolean', default=True,
    68                             help=_('display the component or not')),
    68                             help=_('display the component or not')),
    69         }
    69         }
    70 
    70 
    71     page_size_property = 'navigation.page-size'
    71     page_size_property = 'navigation.page-size'