@filter_hook
    def get_page_number(self, i):
        if i == DOT:
            return mark_safe(u'<span class="dot-page">...</span> ')
        elif i == self.page_num:
            return mark_safe(u'<span class="this-page">%d</span> ' % (i + 1))
        else:
            return mark_safe((escape(self.get_query_string({PAGE_VAR: i})), (i == self.paginator.num_pages - 1 and ' class="end"' or ''), i + 1) % u'<a href="%s"%s>%d</a> ')

    # Result List methods
dataset/ETHPy150Open sshwsfc/xadmin/xadmin/views/list.py/ListAdminView.get_page_number/swapped operands of `%`