ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #05640
Re: LP: #1260712 post-mortem and improving our processes
Alberto Mardegan [2013-12-17 14:25 +0200]:
> It's very sad that the thread went overlooked. If I had read it more
> carefully, I'd indeed tried to help you not to break the API. In fact,
> it was not necessary: the ApplyUpdate() could have stayed as it was,
> and yet be processed asynchronously, allowing the main loop to
> continue running.
> I'm not sure if that's possible to do with the python "dbus" module,
> but it certainly is with python + Gio (via GLib introspection).
It's also possible (and delightfully easy) with dbus-python, using the
reply_handler/error_handler kwargs:
http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#making-asynchronous-method-calls
I've used this approach in good old Jockey back then for backend
method calls which can take minutes.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Follow ups
References