def __init__(self, name): global JOB_CONFIGS if JOB_CONFIGS is None: msg = "job configurations are not inizialized" getLogger().error(msg) raise ValueError, msg ConfigParser.__init__(self) if name in JOB_CONFIGS and isinstance(JOB_CONFIGS[name], JobConfig): msg = "duplicate job configuration: "+name getLogger().error(msg) raise ValueError, msg self.name = name self.__init_config__()
def __init__(self, name): global CLIENT_CONFIGS if CLIENT_CONFIGS is None: msg = "client configurations are not inizialized" getLogger().error(msg) raise ValueError, msg ConfigParser.__init__(self) if name in CLIENT_CONFIGS and isinstance(CLIENT_CONFIGS[name], ClientConfig): msg = "duplicate client configuration: "+name getLogger().error(msg) raise ValueError, msg self.name = name self.__init_config__()