本文整理汇总了Python中helper.Helper.generate_listpage_resource方法的典型用法代码示例。如果您正苦于以下问题:Python Helper.generate_listpage_resource方法的具体用法?Python Helper.generate_listpage_resource怎么用?Python Helper.generate_listpage_resource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类helper.Helper
的用法示例。
在下文中一共展示了Helper.generate_listpage_resource方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: bigvs_followers
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def bigvs_followers(page=0):
bigv_id = request.query.get('bigv_id')
if bigv_id:
bigv_id = int(bigv_id)
rtn = Helper.generate_listpage_resource(BigVFollower,
page,
'name',
'/bigvs/followers',
bigv_id=bigv_id)
else:
rtn = Helper.generate_listpage_resource(BigVFollower,
page,
'name',
'/bigvs/followers')
return dict(followers=rtn['resource'], pagination=rtn['pagination'])
示例2: topics_users
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def topics_users(page=0):
topic_id = request.query.get('topic_id')
if topic_id:
topic_id = int(topic_id)
rtn = Helper.generate_listpage_resource(TopicUser,
page,
'name',
'/topics/users',
topic_id=topic_id)
else:
rtn = Helper.generate_listpage_resource(TopicUser,
page,
'name',
'/topics/users')
return dict(users=rtn['resource'], pagination=rtn['pagination'])
示例3: reposts_users
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def reposts_users(page=0):
repost_id = request.query.get('repost_id')
if repost_id:
repost_id = int(repost_id)
rtn = Helper.generate_listpage_resource(RepostUser,
page,
'name',
'/reposts/users',
repost_id=repost_id)
else:
rtn = Helper.generate_listpage_resource(RepostUser,
page,
'name',
'/reposts/users')
return dict(users=rtn['resource'], pagination=rtn['pagination'])
示例4: topics_weibos
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def topics_weibos(page=0):
user_id = request.query.get('user_id')
if user_id:
user_id = int(user_id)
rtn = Helper.generate_listpage_resource(TopicWeibo,
page,
'content',
'/topics/weibos',
user_id=user_id)
else:
rtn = Helper.generate_listpage_resource(TopicWeibo,
page,
'content',
'/topics/weibos')
return dict(weibos=rtn['resource'], pagination=rtn['pagination'])
示例5: topics
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def topics(page=0):
rtn = Helper.generate_listpage_resource(Topic,
page,
'name',
'/topics')
return dict(topics=rtn['resource'], pagination=rtn['pagination'])
示例6: bigvs
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def bigvs(page=0):
rtn = Helper.generate_listpage_resource(BigV,
page,
'name',
'/bigvs')
return dict(bigvs=rtn['resource'], pagination=rtn['pagination'])
示例7: reposts
# 需要导入模块: from helper import Helper [as 别名]
# 或者: from helper.Helper import generate_listpage_resource [as 别名]
def reposts(page=0):
rtn = Helper.generate_listpage_resource(RepostWeibo,
page,
'content',
'/reposts')
return dict(reposts=rtn['resource'], pagination=rtn['pagination'])