Problem to build message with python binding

Sun Ning classicning at gmail.com
Tue Nov 30 05:53:14 PST 2010


It works now!
Thanks for the information.

On 11/30/2010 04:00 AM, dbus-request at lists.freedesktop.org wrote:

You aren't giving dbus-python enough information for it to know what type you
want, so it has to guess (and can't get it right in complex cases). You'll need
to give it more information by giving it D-Bus-specific types, something like:

     return dbus.Dictionary({
             'myint64': dbus.Int64(42),
             'mylist': dbus.Array([1, 2, 3], signature='u'),
             'mydict': dbus.Dictionary({}, signature='us'),
         }, signature='sv')



-- 
Sun Ning.
More about me <http://about.me/sunng/bio>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20101130/113f8be4/attachment.htm>


More information about the dbus mailing list