本文整理匯總了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)