def __init__(self, steamHandler, queue): threading.Thread.__init__(self) self.queue = queue self.mm = steamHandler.mm self.dbHandler = database.DatabaseWrapper( self.mm, config.db_host, config.db_user, config.db_passwd, config.db_name, config.db_engine, config.db_charset)
def __init__(self): if (config.logfile_name): if (config.logfile_append): flag = 'a' else: flag = 'w' self.logFile = open(config.logfile_name, flag) self.dbHandler = database.DatabaseWrapper( self, config.db_host, config.db_user, config.db_passwd, config.db_name, config.db_engine, config.db_charset) self.sessionHandler = session.SessionHandler(self) self.userHandler = session.users.UserHandler(self) self.matchHandler = game.match.MatchHandler(self)
def __init__(self): if (config.logfile_name): if (config.logfile_append): flag = 'a' else: flag = 'w' self.logFile = open(config.logfile_name, flag) self.log("Initializing...") self.dbHandler = database.DatabaseWrapper( self, config.db_host, config.db_user, config.db_passwd, config.db_name, config.db_engine, config.db_charset) self.sessionHandler = session.SessionHandler(self) self.userHandler = session.users.UserHandler(self) self.matchHandler = game.match.MatchHandler(self) self.steamHandler = steam.SteamHandler(self) self.log("Started successfully")