Esempio n. 1
0
    def __init__(self):

        XendLogging.init(self.logfile_default, self.loglevel_default)
        log.debug( "%s", "__init__")

        self.udi_dict = {}
        self.debug = 0
        self.dbpath = "/local/domain/0/backend"
        self.bus = dbus.SystemBus()
        self.hal_manager_obj = self.bus.get_object('org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
        self.hal_manager = dbus.Interface( self.hal_manager_obj, 'org.freedesktop.Hal.Manager')
        self.gatherBlockDevices()
        self.registerDeviceCallbacks()
Esempio n. 2
0
    def __init__(self):

        XendLogging.init(self.logfile_default, self.loglevel_default)
        log.debug("%s", "__init__")

        self.udi_dict = {}
        self.debug = 0
        self.dbpath = "/local/domain/0/backend"
        self.bus = dbus.SystemBus()
        self.hal_manager_obj = self.bus.get_object(
            'org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
        self.hal_manager = dbus.Interface(self.hal_manager_obj,
                                          'org.freedesktop.Hal.Manager')
        self.gatherBlockDevices()
        self.registerDeviceCallbacks()
Esempio n. 3
0
 def configure(self):
     self.set_config()
     XendLogging.init(
         self.get_config_string("logfile", self.logfile_default),
         self.get_config_string("loglevel", self.loglevel_default))
Esempio n. 4
0
 def configure(self):
     self.set_config()
     XendLogging.init(self.get_config_string("logfile",
                                            self.logfile_default),
                      self.get_config_string("loglevel",
                                            self.loglevel_default))