[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 11/15] Use HAL to probe for disks. Add a removableDriveDict for use by the exception dialog.



On Wed, 2007-12-05 at 18:24 -0500, Bill Nottingham wrote:
> +        import dbus
> +
> +        bus = dbus.SystemBus()
> +
> +        halobj = bus.get_object("org.freedesktop.Hal","/org/freedesktop/Hal/Manager")
> +        hal = dbus.Interface(halobj, "org.freedesktop.Hal.Manager")
> +

Some of these can and do raise exceptions.  Also, it'd probably be a
little cleaner if we had an abstraction around the hal stuff so that we
could avoid littering the world with dbus calls.  That would also make
it a little easier to adapt in the future when hal is rewritten.  

Jeremy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]