예제 #1
0
 def readConf(self):
     """
     Read the configuration file using the ConfigParser API.
     The PluginConfig.readConf reads the "disable" option of the
     "main" section.
     """
     PluginConfig.readConf(self)
     BackuppcDatabaseConfig.setup(self, self.conffile)
     self.disable = self.getboolean("main", "disable")
     self.tempdir = self.get("main", "tempdir")
예제 #2
0
파일: config.py 프로젝트: neoclust/pulse
 def readConf(self):
     """
     Read the configuration file using the ConfigParser API.
     The PluginConfig.readConf reads the "disable" option of the
     "main" section.
     """
     PluginConfig.readConf(self)
     BackuppcDatabaseConfig.setup(self, self.conffile)
     self.disable = self.getboolean("main", "disable")
     self.tempdir = self.get("main", "tempdir")
예제 #3
0
 def __init__(self, name='backuppc', conffile=None):
     if not hasattr(self, 'initdone'):
         PluginConfig.__init__(self, name, conffile)
         BackuppcDatabaseConfig.__init__(self)
         self.initdone = True
예제 #4
0
파일: config.py 프로젝트: neoclust/pulse
 def __init__(self, name = 'backuppc', conffile = None):
     if not hasattr(self, 'initdone'):
         PluginConfig.__init__(self, name, conffile)
         BackuppcDatabaseConfig.__init__(self)
         self.initdone = True