Exemplo n.º 1
0
    def importIngredientPrices(self, ingredientPricesFile):
        print "Importing Ingredient Prices"

        # get an interface to the file
        II = ImportInterface(self.dbfilename)

        II.importIngredientPrices(ingredientPricesFile)
Exemplo n.º 2
0
    def importResults(self, resultsDataFile, season, week):
        print "Importing round results for Week %d of Season %d" % (week,
                                                                    season)
        # get an interface to the file
        II = ImportInterface(self.dbfilename)

        # import results as csv file
        II.importResults(resultsDataFile, season, week)
Exemplo n.º 3
0
 def createDatabaseFromName(self,
                            current_window,
                            dbFileName,
                            directory
                            ):
     dbFileName = os.path.join(directory.get(), dbFileName.get())
     tkMessageBox.showinfo("Attention","Created new database called %s" % dbFileName)
     
     # get an interface to the file
     II = ImportInterface(dbFileName)
     II.createDatabase()
     
     self.closeTopLevelWindow(current_window)
Exemplo n.º 4
0
 def importResults(self,
                   resultsDataFile,
                   season,
                   week):
     print "Importing round results for Week %d of Season %d" % (week,
                                                                 season)
     # get an interface to the file
     II = ImportInterface(self.dbfilename)
     
     # import results as csv file
     II.importResults(resultsDataFile,
                      season,
                      week)
Exemplo n.º 5
0
    def importGameStats(
            self,
            gameStatsFile,  # csv containing game statistics
            opposition,  # opposition team name
            season,  # season number
            week  # week number
    ):
        print "Importing new game data for Week %d of Season %d against %s" % (
            week, season, opposition)
        # get an interface to the file
        II = ImportInterface(self.dbfilename)

        # import game stats as csv file
        II.importGameStats(gameStatsFile, opposition, season, week)
Exemplo n.º 6
0
 def importGameStats(self,
                     gameStatsFile,  # csv containing game statistics
                     opposition,     # opposition team name
                     season,         # season number
                     week            # week number
                     ):
     print "Importing new game data for Week %d of Season %d against %s" % (week,
                                                                            season,
                                                                            opposition)
     # get an interface to the file
     II = ImportInterface(self.dbfilename)
     
     # import game stats as csv file
     II.importGameStats(gameStatsFile,
                       opposition,
                       season,
                       week)
Exemplo n.º 7
0
    def createDatabase(self, ):

        # get an interface to the file
        II = ImportInterface(self.dbfilename)
        II.createDatabase()
Exemplo n.º 8
0
    def importTest(self):
        # get an interface to the file
        II = ImportInterface(self.dbfilename)

        II.addBars()
Exemplo n.º 9
0
 def importTest(self):
     # get an interface to the file
     II = ImportInterface(self.dbfilename)
     
     II.addBars()