Using D-Bus with Twisted
John (J5) Palmieri
johnp at redhat.com
Sun Dec 10 11:34:25 PST 2006
On Sun, 2006-12-10 at 18:13 +0200, Gavrie Philipson [D-Bus] wrote:
> Hi,
>
> I'm about to start a project which involves adding D-Bus support to an
> existing Python application that is based on Twisted.
> The latest dbus-python versions include some tantalizing references to
> planned support for integrating D-Bus into the Twisted mainloop.
> However, I understand that this is not ready yet...?
0.80rc1 is still crashing for me and doesn't work with my use case which
is the sugar environment on the olpc. Until 0.80 is completely
backwards compatible with the 0.7x public API's we are not going to
release it (that is not to say the public API's won't change in the
future but we want to start from a good base first). As for using the
twisted mainloop what has happened is a more generic interface for
integrating into mainloops other than glib's. Of course the only thing
implemented right now is glib.
>
> What would be the easiest way to integrate D-Bus and Twisted right
> now? I know that Twisted can use the GLib event loop, but will this
> work out of the box? I found some references to doing this with older
> versions of the dbus-python API, but nothing recent.
I had added a patch which came from a twisted developer which allowed
twisted to integrate with the 0.7x and earlier bindings. I don't know
what the status is of the twisted portion of this.
> Does anyone have examples available that use the current API?
I would ask on some twisted mailing lists. I am not sure of where to
find examples.
--
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus
mailing list