dbus-python and dbus properties

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jun 25 04:34:36 PDT 2008


On Tue, 24 Jun 2008 at 19:44:16 -0400, Eric Jonas wrote:
> Even if it's not up to the bindings, however, is there a way to hook in
> to the introspection infrastructure such that I can at least announce to
> clients that I have properties? 

Introspect() is just a dbus-python method like any other (see dbus/service.py
for the implementation), so you could always override it. For instance, you
could call the parent method via super(), then alter the returned XML to
include your properties too.

    Simon


More information about the dbus mailing list