[maemo-developers] [maemo-developers] python osso and icd

From: Fabio Forno fabio.forno at gmail.com
Date: Tue Jan 9 17:58:26 EET 2007
Hi,
since i've problems to keep the connection on sending the command with
dbus-send (see the trhread above), i'm trying with a simple python
script. I've tried other icd commands and I had no problems, but the
connect method does not work:

osso_c.rpc_run("com.nokia.icd", "/com/nokia/icd", "com.nokia.icd",
"connect", rpc_args = ("myap", 0, 0), wait_reply = True,
use_system_bus=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
osso.OssoRPCException: Unsupported interface or method

I think this is due to the fact that the two 0s are signed, while the
interface of connect takes two uint32 params. Is there a way to force
the type of the parameters?

I don't want to directly use the dbus bindings of python since I've
found there are few memory leaks that make them unusable for long
running applications

-- 
Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:ff at kamin.polito.it
** Try Jabber http://www.jabber.org

More information about the maemo-developers mailing list