From ac36149533cdf3131dec3f43a7e9ea1ee11937f5 Mon Sep 17 00:00:00 2001 From: Robert McQueen Date: Fri, 4 Nov 2005 12:18:00 +0000 Subject: 2005-11-04 Robert McQueen * python/dbus_bindings.pyx, test/python/test-client.py: Fix marshalling of boolean values. Add some booleans to the values in the test client. * python/decorators.py, python/service.py: Add an 'async_callbacks' argument to the dbus.service.method decorator, which allows you to name arguments to take two callback functions for replying with return values or an exception. * test/python/test-client.py, test/python/test-service.py: Add test case using asynchronous method reply functions, both return values and errors, and from within both the function itself and from a mainloop callback. * python/decorators.py, python/service.py: Perform checking that the number of method/signal arguments matches the number of types in the signature at class loading time, not when you first introspect the class. * python/service.py: Remove debug print left by the last commit. --- python/dbus_bindings.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/dbus_bindings.pyx') diff --git a/python/dbus_bindings.pyx b/python/dbus_bindings.pyx index c693a3d0..a96a5adc 100644 --- a/python/dbus_bindings.pyx +++ b/python/dbus_bindings.pyx @@ -893,7 +893,7 @@ cdef class MessageIter: ptype = type(value) ret = "" if ptype == bool: - ret = TYPE_BOOL + ret = TYPE_BOOLEAN ret = str(chr(ret)) elif ptype == int: ret = TYPE_INT32 @@ -937,7 +937,7 @@ cdef class MessageIter: ret = TYPE_BYTE ret = str(chr(ret)) elif isinstance(value, Boolean) or value == Boolean: - ret = TYPE_BOOL + ret = TYPE_BOOLEAN ret = str(chr(ret)) elif isinstance(value, Int16) or value == Int16: ret = TYPE_INT16 -- cgit