def rename_global_config(): """.""" conn = CDBClient(config_type='global_config') configs = conn.find_configs() for config in configs: config_name = config['name'] # config_name = 'si_chromcorr_orbcorr_tmp' config_value = conn.get_config_value(config_name) changed = rename_in_config(conn, config_name, config_value) if changed: break
def getConfigurations(self, deleted=False): """Return name of saved configurations.""" db = ConfigDBClient() return db.find_configs(config_type=self._config_type, discarded=deleted)