def __exclude__(self): if cfg.exists("dababase_user_url"): db_url = cfg.get("database_user_url") elif cfg.exists("database_url"): db_url = cfg.get("database_url") else: return not osdb.has_sqlalchemy() return not osdb.has_dialect(osdb.get_dialect(db_url))
def __exclude__(self): """ method exlusion list """ if cfg.exists("database_url"): db_url = cfg.get("database_url") return not osdb.has_dialect(osdb.get_dialect(db_url)) else: return not osdb.has_sqlalchemy()