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 _page_list(self, limit, offset):
     return zsite_show_list(CID_COM, limit, offset)
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