コード例 #1
0
ファイル: jobconfig.py プロジェクト: akatrevorjay/rpync
 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__()
コード例 #2
0
ファイル: clientconfig.py プロジェクト: akatrevorjay/rpync
 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__()