using properties with dbus-python
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Mar 31 04:53:14 PDT 2010
On Tue, 30 Mar 2010 at 02:15:50 -0400, Alex Launi wrote:
> I'm trying to export properties in my object using dbus-python. Is this
> possible at all?
Properties are just a D-Bus interface with 3 methods (documented in "Standard
Interfaces" in <http://dbus.freedesktop.org/doc/dbus-specification.html>).
Some bindings, like ndesk-dbus, give you syntactic sugar for implementing
that interface; dbus-python currently doesn't, so you implement it like you'd
implement any other interface, with the @method decorator on Get, Set and
GetAll methods.
Simon
More information about the dbus
mailing list