コード例 #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