def getTeam(self, team): if Dictionary.findTeam(team): return Dictionary.findTeam(team) else: self.showTeamNotFound(team)
def getCountryFromEventBlockTitle(self, title): result = "Международный" for title_part in title.split("."): if Dictionary.findCountry(title_part.strip()): result = Dictionary.findCountry(title_part.strip()) return result
def getChampionshipFromEventBlockTitle(self, title): for title_part in title.split("."): if Dictionary.findChampionship(title_part.strip(" \r\n")): return Dictionary.findChampionship(title_part.strip(" \r\n")) else: self.showChampionshipNotFound(title_part.strip(" \r\n"))
def getSportFromEventBlockTitle(self, title): for title_part in title.split("."): if Dictionary.findSport(title_part.strip()): return Dictionary.findSport(title_part.strip()) else: self.showSportNotFound(title_part.strip())
def getChampionshipFromEventBlockTitle( self, title ): for title_part in title.split("."): if Dictionary.findChampionship( title_part.strip(" \r\n") ): return Dictionary.findChampionship( title_part.strip(" \r\n") ) else: self.showChampionshipNotFound( title_part.strip(" \r\n") )
def getCountryFromEventBlockTitle( self, title ): result = "Международный" for title_part in title.split("."): if Dictionary.findCountry( title_part.strip() ): result = Dictionary.findCountry( title_part.strip() ) return result
def getSportFromEventBlockTitle( self, title ): for title_part in title.split("."): if Dictionary.findSport( title_part.strip() ): return Dictionary.findSport( title_part.strip() ) else: self.showSportNotFound( title_part.strip() )
def getTeam( self, team ): if Dictionary.findTeam( team ): return Dictionary.findTeam( team ) else: self.showTeamNotFound( team )