equal
deleted
inserted
replaced
70 start_param = '__start' |
70 start_param = '__start' |
71 stop_param = '__stop' |
71 stop_param = '__stop' |
72 page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>' |
72 page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>' |
73 selected_page_link_templ = u'<span class="selectedSlice"><a href="%s" title="%s">%s</a></span>' |
73 selected_page_link_templ = u'<span class="selectedSlice"><a href="%s" title="%s">%s</a></span>' |
74 previous_page_link_templ = next_page_link_templ = page_link_templ |
74 previous_page_link_templ = next_page_link_templ = page_link_templ |
75 no_previous_page_link = no_next_page_link = u'' |
75 no_previous_page_link = u'<<' |
|
76 no_next_page_link = u'>>' |
76 |
77 |
77 def __init__(self, req, rset, **kwargs): |
78 def __init__(self, req, rset, **kwargs): |
78 super(NavigationComponent, self).__init__(req, rset, **kwargs) |
79 super(NavigationComponent, self).__init__(req, rset, **kwargs) |
79 self.starting_from = 0 |
80 self.starting_from = 0 |
80 self.total = rset.rowcount |
81 self.total = rset.rowcount |