def __init__(self): if setup_options.getDatabaseType() == "sqlite": self.db = ContactoSqlite(setup_options.getSqliteDatabase()) elif setup_options.getDatabaseType() == "mysql": self.db = ContactoMysql(setup_options.getMysqlHost(), setup_options.getMysqlSchema(), setup_options.getMysqlUser(), setup_options.getMysqlPass()) else: raise "You must define a database"
def __init__(self): self.db = setup_options.getSqliteDatabase()
def __init__(self): self.db = setup_options.getSqliteDatabase()