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()
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()
def configure(self): self.set_config() XendLogging.init( self.get_config_string("logfile", self.logfile_default), self.get_config_string("loglevel", self.loglevel_default))
def configure(self): self.set_config() XendLogging.init(self.get_config_string("logfile", self.logfile_default), self.get_config_string("loglevel", self.loglevel_default))