def addMysqlWithDefault(self, cbAndEvt): dbManager = MySqlManager() if dbManager.initMySqlWithDatabase(appconfig.dbhost, appconfig.dbport, appconfig.dbuser, appconfig.dbpassword, appconfig.dbname, cbAndEvt) == True: self.dbManagerMap[scode] = dbManager return True return False
def addMySql(self, scode, host, port, user, passwd, dbname, cbAndEvt): dbManager = MySqlManager() if dbManager.initMySqlWithDatabase(host, port, user, passwd, dbname, cbAndEvt) == True: self.dbManagerMap[scode] = dbManager return True return False