Example #1
0
def hero_page(n):
    n = int(n)
    count = zsite_show_count(CID_USER)
    page, limit, offset = page_limit_offset('//hero.%s/-%%s' % SITE_DOMAIN,
                                            count, n, 64)
    zsite_list = zsite_show_list(CID_USER, limit, offset)
    return zsite_list, page
Example #2
0
 def _total(self):
     return zsite_show_count(CID_COM)
Example #3
0
def hero_page(n):
    n = int(n)
    count = zsite_show_count(CID_USER)
    page, limit, offset = page_limit_offset("//hero.%s/-%%s" % SITE_DOMAIN, count, n, 64)
    zsite_list = zsite_show_list(CID_USER, limit, offset)
    return zsite_list, page