Пример #1
0
 def requestTeamInfo(self, isMy, callback):
     if isMy:
         clubDbID = self._ownClub.clubDBID
     else:
         clubDbID = self._enemyClub.clubDBID
     club = self.clubsCtrl.getClub(clubDbID)
     if club:
         callback(items.TeamInfo(club.getUserName(), self._getEmblemRq(club)))
     else:
         self.__teamInfoCBs[clubDbID] = (isMy, callback)
Пример #2
0
 def requestTeamInfo(self, isMy, callback):
     callback(isMy, items.TeamInfo())