本文整理汇总了Python中vilya.models.team.Team.get方法的典型用法代码示例。如果您正苦于以下问题:Python Team.get方法的具体用法?Python Team.get怎么用?Python Team.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vilya.models.team.Team
的用法示例。
在下文中一共展示了Team.get方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: team
# 需要导入模块: from vilya.models.team import Team [as 别名]
# 或者: from vilya.models.team.Team import get [as 别名]
def team(self):
from vilya.models.team import Team
return Team.get(self.team_id)
示例2: get_teams
# 需要导入模块: from vilya.models.team import Team [as 别名]
# 或者: from vilya.models.team.Team import get [as 别名]
def get_teams():
rs = store.execute('select id from team')
for id, in rs:
yield Team.get(id)
示例3: teams
# 需要导入模块: from vilya.models.team import Team [as 别名]
# 或者: from vilya.models.team.Team import get [as 别名]
def teams(self):
from vilya.models.nteam import TeamUserRelationship
from vilya.models.team import Team
rs = TeamUserRelationship.gets(user_id=self.name)
return filter(None, [Team.get(r.team_id) for r in rs])
示例4: __init__
# 需要导入模块: from vilya.models.team import Team [as 别名]
# 或者: from vilya.models.team.Team import get [as 别名]
def __init__(self, data):
NotificationDispatcher.__init__(self, data)
self._team_id = data.get('team_id')
self._last_week = data.get('last_week')
self._team = Team.get(self._team_id)
示例5: get_fair
# 需要导入模块: from vilya.models.team import Team [as 别名]
# 或者: from vilya.models.team.Team import get [as 别名]
def get_fair():
return Team.get(FAIR_ID)