clarity of concept
clarity of concept
Posted Nov 11, 2014 16:53 UTC (Tue) by nybble41 (subscriber, #55106)In reply to: clarity of concept by ceplm
Parent article: Kdbus meets linux-kernel
The existing Python interface to DBUS has a few more layers than your proposal, but it doesn't seem _that_ complicated:
> import dbus
>
> dbus.SessionBus() \
> .get_object('org.freedesktop.timedate1', '/org/freedesktop/timedate1') \
> .SetTimezone('Europe/Berlin', dbus_interface='org.freedesktop.timedate1')
That's three method calls, the same as your DCOP example. There are more details here: http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#making-method-calls.
