web/component.py
branchstable
changeset 3012 97696093ba54
parent 3010 684a0c546774
child 3013 6a40a9a72957
equal deleted inserted replaced
3011:657dfe374b08 3012:97696093ba54
    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'&lt;&lt;'
       
    76     no_next_page_link = u'&gt;&gt;'
    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