[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: using properties with dbus-python
From:       Simon McVittie <simon.mcvittie () collabora ! co ! uk>
Date:       2010-03-31 11:53:14
Message-ID: 20100331115314.GC30324 () reptile ! pseudorandom ! co ! uk
[Download RAW message or body]

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
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic