def paginator_number(cl,i):
    if i == DOT:
        return '... '
    elif i == cl.page_num:
        return '<span class="this-page">%d</span> ' % (i+1)
    else:
        return '<a href="%s"%s>%d</a> ' % (cl.get_query_string({PAGE_VAR: i}), (i == cl.paginator.pages-1 and ' class="end"' or ''), i+1)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/contrib/admin/templatetags/admin_list.py/paginator_number/original