示例#1
0
文件: query.py 项目: CMGS/Sagittarius
def get_event_page(page):
    try:
        page = int(page)
        page_obj = Topic.get_event_page(page, per_page=PAGE_NUM)
        list_page = gen_list_page_obj(page_obj)
        return list_page
    except NotFound, e:
        raise e
示例#2
0
文件: query.py 项目: CMGS/Sagittarius
def get_reply(topic_id, page):
    try:
        topic_id = int(topic_id)
        page_obj = Reply.get_reply_page(topic_id, page, PAGE_NUM)
        list_page = gen_list_page_obj(page_obj)
        return list_page
    except NotFound, e:
        raise e
示例#3
0
文件: query.py 项目: CMGS/Sagittarius
def get_user_interest(uid, page):
    try:
        uid = int(uid)
        page_obj = Choice.get_user_events(uid, page, per_page=PAGE_NUM)
        list_page = gen_list_page_obj(page_obj)
        return list_page
    except NotFound, e:
        raise e
示例#4
0
文件: query.py 项目: CMGS/Sagittarius
def get_outbox_mail(uid, page):
    try:
        page = int(page)
        uid = int(uid)
        page_obj = Mail.get_outbox_page(uid, page, per_page=PAGE_NUM)
        list_page = gen_list_page_obj(page_obj)
        return list_page
    except NotFound, e:
        raise e