John (J5) Palmieri
johnp at redhat.com
Sat Dec 25 19:44:19 PST 2004
On Fri, 2004-12-24 at 09:35 +0100, Julien PUYDT wrote:
> Le jeudi 23 décembre 2004 à 16:02 -0500, John (J5) Palmieri a écrit :
> > > Pure dbus is possible... once you know how to get a 'uint32' (and when I
> > > think this isn't even used!)...
> > Just send in an integer. Wouldn't remote_object.ActivateService
> > ("org.service.you.want.activated", 0); work? You could also extract the
> > MessageIter from the Message and use it's append_int32 method but that
> > is all encapsulated for you. Post your code and I can be of more help
> > here.
> >>> import dbus
> >>> bus = dbus.SessionBus ()
> >>> service = bus.get_service ('org.freedesktop.DBus')
> >>> object = service.get_object ('/org/freedesktop/DBus',
> >>> object.ActivateService ('org.gnomemeeting.instance', 0)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.3/site-packages/dbus.py", line 208, in __call__
> reply_message = self._connection.send_with_reply_and_block(message,
> File "dbus_bindings.pyx", line 557, in
> dbus_bindings.DBusException: Argument 1 is specified to be of type
> "uint32", but is actually of type "int32"
Congratulations, you have found a bug in the bindings ;-) I will have a
look at it tomorrow to try and fix it.
> Don't hesitate to ask stupid questions: as I'm a beginner, I may have
> missed even something blindingly obvious! ;-)
> Snark on #gnomemeeting
More information about the dbus