equal
deleted
inserted
replaced
29 .context class attributes |
29 .context class attributes |
30 """ |
30 """ |
31 |
31 |
32 __registry__ = 'contentnavigation' |
32 __registry__ = 'contentnavigation' |
33 __registerer__ = accepts_registerer |
33 __registerer__ = accepts_registerer |
34 __selectors__ = (one_line_rset, primary_view, match_context_prop,) |
34 __select__ = one_line_rset() & primary_view() & match_context_prop() |
35 registered = accepts_compat(has_relation_compat(condition_compat(View.registered))) |
35 registered = accepts_compat(has_relation_compat(condition_compat(View.registered))) |
36 |
36 |
37 property_defs = { |
37 property_defs = { |
38 _('visible'): dict(type='Boolean', default=True, |
38 _('visible'): dict(type='Boolean', default=True, |
39 help=_('display the box or not')), |
39 help=_('display the box or not')), |
58 |
58 |
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 __selectors__ = (paginated_rset,) |
63 __select__ = paginated_rset() |
64 |
64 |
65 page_size_property = 'navigation.page-size' |
65 page_size_property = 'navigation.page-size' |
66 start_param = '__start' |
66 start_param = '__start' |
67 stop_param = '__stop' |
67 stop_param = '__stop' |
68 page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>' |
68 page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>' |