web/component.py
branchtls-sprint
changeset 1511 514e4e53a3c7
parent 1433 091ac3ba5d51
child 1661 00340ebedc24
equal deleted inserted replaced
1510:59584270a5bf 1511:514e4e53a3c7
    59 
    59 
    60 class NavigationComponent(Component):
    60 class NavigationComponent(Component):
    61     """abstract base class for navigation components"""
    61     """abstract base class for navigation components"""
    62     id = 'navigation'
    62     id = 'navigation'
    63     __select__ = paginated_rset()
    63     __select__ = paginated_rset()
       
    64 
       
    65     property_defs = {
       
    66         _('visible'):  dict(type='Boolean', default=True,
       
    67                             help=_('display the component or not')),
       
    68         }
    64 
    69 
    65     page_size_property = 'navigation.page-size'
    70     page_size_property = 'navigation.page-size'
    66     start_param = '__start'
    71     start_param = '__start'
    67     stop_param = '__stop'
    72     stop_param = '__stop'
    68     page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>'
    73     page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>'