dbus/python dbus_bindings.pyx.in,1.2,1.3
David Zeuthen
david@pdx.freedesktop.org
Wed, 15 Oct 2003 14:25:15 -0700
Update of /cvs/dbus/dbus/python
In directory pdx:/tmp/cvs-serv3646/python
Modified Files:
dbus_bindings.pyx.in
Log Message:
2003-10-14 David Zeuthen <david@fubar.dk>
* python/dbus_bindings.pyx.in (MessageIter.get): fixed typo in
argtype to arg_type when raising unknown arg type exception.
Changed type list to reflect the changes in dbus-protocol.h so
the bindings actually work.
Index: dbus_bindings.pyx.in
===================================================================
RCS file: /cvs/dbus/dbus/python/dbus_bindings.pyx.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dbus_bindings.pyx.in 30 Sep 2003 02:40:49 -0000 1.2
+++ dbus_bindings.pyx.in 15 Oct 2003 21:25:13 -0000 1.3
@@ -429,7 +429,7 @@
else:
raise TypeError, "Unknown array type %d in MessageIter" % (array_type)
else:
- raise TypeError, 'Unknown arg type %d in MessageIter' % (argtype)
+ raise TypeError, 'Unknown arg type %d in MessageIter' % (arg_type)
return retval
@@ -569,7 +569,7 @@
(MESSAGE_TYPE_INVALID, MESSAGE_TYPE_METHOD_CALL, MESSAGE_TYPE_METHOD_RETURN, MESSAGE_TYPE_ERROR, MESSAGE_TYPE_SIGNAL) = range(5)
-(TYPE_INVALID, TYPE_NIL, TYPE_BYTE, TYPE_BOOLEAN, TYPE_INT32, TYPE_UINT32, TYPE_INT64, TYPE_UINT64, TYPE_DOUBLE, TYPE_STRING, TYPE_NAMED, TYPE_ARRAY, TYPE_DICT, TYPE_OBJECT_PATH) = range(14)
+(TYPE_INVALID, TYPE_NIL, TYPE_BYTE, TYPE_BOOLEAN, TYPE_INT32, TYPE_UINT32, TYPE_INT64, TYPE_UINT64, TYPE_DOUBLE, TYPE_STRING, TYPE_NAMED, TYPE_ARRAY, TYPE_DICT, TYPE_OBJECT_PATH) = (0, 118, 121, 98, 105, 117, 120, 116, 100, 115, 110, 97, 99, 111)
cdef class Message:
cdef DBusMessage *msg