- Christophe Nowicki - http://www.csquad.org -
D-BUS for Mozilla project progress #3
Posted By cscm On 10th July 2006 @ 08:51 In Google Summer of Code | 2 Comments
|
Here is my current progress on my project :
ret = iface.callWithArguments(\\"MethodName\\", ['arg1', 42, 43.1], 3)
// var arg = new Array(1, 'string', 2.3) // does not work yet var arg = new Array(1, 2, 3) ret = iface.callWithArguments(\\"MethodName\\", [arg], 1)
try {
ret = iface.call(\\"SomethingGoesWrong\\")
} catch (e) {
e.name // error name, ex: org.freedesktop.DBus.Python.dbus.exceptions.UnknownMethodException
e.message // error details, ex: SomethingGoesWrong is not a valid method of interface...
}
It’s working, but I thing that a more precise exception handling system is needed. I continue to work on :
I will release version 0.1 next week. |
Article printed from Christophe Nowicki: http://www.csquad.org
URL to article: http://www.csquad.org/2006/07/10/d-bus-for-mozilla-project-progress-3/
Click here to print.