[packagekit] Python bindings part 2
Martin Pitt
martin.pitt at ubuntu.com
Thu Jul 24 07:10:10 PDT 2008
Hi Aidan,
Martin Pitt [2008-07-17 13:46 +0100]:
> The current implementation was just a test for circumventing the
> dbus-glib bug I mentioned, but it doesn't work.
I just figured out how to use async_callbacks in a D-BUS server. When
I use that, the bug I mentioned (FD #16668) doesn't happen.
This solution is pretty elegant, it essentially means that wait()
doesn't need to be called at all any more. Resolve() (and other
functions) would trigger the D-BUS call and store the result/error
closures, and the "Finished" signal handler would deliver the return
value of the call to the to the result closure.
But that doesn't work at all if you want to use the Python class in
just a normal program (not as part of a D-BUS service method). I
wonder whether there is any chance of having code which works in both
cases, so that I can just use the code from your packagekit branch
instead of keeping a copy with the async_callbacks approach in Jockey?
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/packagekit/attachments/20080724/fce6e5f7/attachment.pgp
More information about the PackageKit
mailing list