本文整理汇总了Python中handlers.person.Person.board方法的典型用法代码示例。如果您正苦于以下问题:Python Person.board方法的具体用法?Python Person.board怎么用?Python Person.board使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类handlers.person.Person
的用法示例。
在下文中一共展示了Person.board方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: board
# 需要导入模块: from handlers.person import Person [as 别名]
# 或者: from handlers.person.Person import board [as 别名]
def board():
auth = session.get("auth", {})
user = auth.get("user", None)
if user:
user_id = user.id
else:
user_id = None
person = Person()
person.board(request.args(0) or user_id or redirect(login_url))
return person.render('app/person/board')
示例2: board
# 需要导入模块: from handlers.person import Person [as 别名]
# 或者: from handlers.person.Person import board [as 别名]
def board():
auth = session.get("auth", {})
user = auth.get("user", None)
if user:
user_id = user.id
else:
user_id = None
person = Person()
person.context.leftlogo_enabled = True
person.board(request.args(0) or user_id or redirect(login_url), request.vars.postid)
return person.render()
示例3: board
# 需要导入模块: from handlers.person import Person [as 别名]
# 或者: from handlers.person.Person import board [as 别名]
def board():
person = Person()
person.board(request.args(0) or session.auth.user.id)
return person.render('app/person/board')