Problem sending message from Python
John (J5) Palmieri
johnp at redhat.com
Fri Apr 29 11:57:57 PDT 2005
On Mon, 2005-04-25 at 17:51 +0100, Tony Houghton wrote:
> In <1114440303.6761.6.camel at remedyz.boston.redhat.com>, John (J5) Palmieri wrote:
>
> > Python right now only understands int32 since it is an untyped language.
>
> [Snip]
>
> > The other option is for
> > Rox to switch to just using int32 for now if it really doesn't need the
> > uint. I have no idea why this worked in the 0.2x series.
>
> The component of ROX that receives the message is written in C, but that
> is trying to read DBUS_TYPE_INT32 anyway. The capplet sending the
> message is pure Python and has no control over the type, because it just
> calls rox_settings.SetInt(self.name, self.int_value) where rox_settings
> is a dbus object. I've tried the int cast operator on int_value, but
> that doesn't help.
>
> I don't see how the problem can be anywhere else but in the dbus
> library. MessageIter.append_int32 has changed between the two APIs.
>
> --
> TH * http://www.realh.co.uk
I just found the bug. The signatures for UInt16 and Int32 were switched
in the bindings. Will do a 0.33.1 release this weekend.
--
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
More information about the dbus
mailing list