python hal/dbus question

Jason Gerard DeRose jderose at jasonderose.org
Mon Oct 10 12:37:56 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

i'm writing a python application that needs to respond to optical disc
insert/remove events, know what the disc type is, etc.  i'm developing
against ubuntu breezy (hal 0.5.3, dbus 0.36.2).

i'm trying to create a device proxy object from a udi, but the examples
i've found don't work with the current api.  could someone provide (or
point me to) a quick example?

i've attached a snippet from what i have working so far.

much thanks!

- -jason

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQ0rDFHqoeC9LR4KXAQJCLggAoiWRylb7djPUIOYb27FR9FaFBxUYutfB
05X7SwREJ9T/GYPV8/G1l4O35EKXEms9S81klYSyGy6fQqBOPtOIFsawj3sA3VE3
uptPVxObobi259nn2L0qq+WplYEICsL1c5jW49TefM1bynl9OX3gwOyOnX/3uQOk
QTuHK9Nwt601EWvS1rQf3Ibfar51ZBP1v/fKnNOufnxxlYaWVchhbCsVimaZ74/L
kpdfpn0TfjkgdCgqSn4gbc2v2ZuYjarZq2kpU2lqL7J5TbP9YUOe+iqpPi711pJB
myoExTeJ2a5f+0fXrIQjO609rXLYTyu3UfCJ7yef90R6MyOl9aIpSw==
=X2qO
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal_dbus_question.py
Type: text/x-python
Size: 588 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051010/93e71110/hal_dbus_question.py


More information about the hal mailing list