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)
def requestTeamInfo(self, isMy, callback): callback(isMy, items.TeamInfo())