Esempio n. 1
0
 def getTeam(self, team):
     if Dictionary.findTeam(team):
         return Dictionary.findTeam(team)
     else:
         self.showTeamNotFound(team)
Esempio n. 2
0
 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
Esempio n. 3
0
 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"))
Esempio n. 4
0
 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())
Esempio n. 5
0
 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") )
Esempio n. 6
0
 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
Esempio n. 7
0
 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() )
Esempio n. 8
0
 def getTeam( self, team ):
   if Dictionary.findTeam( team ):
     return Dictionary.findTeam( team )
   else:
     self.showTeamNotFound( team )