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
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
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
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