summaryrefslogtreecommitdiffstats
path: root/python/dbus_bindings.pyx
diff options
context:
space:
mode:
authorRobert McQueen <robot101@debian.org>2005-11-27 16:55:09 +0000
committerRobert McQueen <robot101@debian.org>2005-11-27 16:55:09 +0000
commit75d6182c05309031371ddf9e9103f5921afa0031 (patch)
tree51e3527328e202e006fccaca26ed757d89bfa34a /python/dbus_bindings.pyx
parentc77c7e343b73bb9c14319679063a55e5cf1ee1d6 (diff)
2005-11-27 Carlos Garcia Campos <carlosgc@gnome.org>
* glib/dbus-gobject.c: Append a GValue instead of a basic type in method return message for property getters
Diffstat (limited to 'python/dbus_bindings.pyx')
-rw-r--r--python/dbus_bindings.pyx8
1 files changed, 2 insertions, 6 deletions
diff --git a/python/dbus_bindings.pyx b/python/dbus_bindings.pyx
index 21adc87a..8b1b221b 100644
--- a/python/dbus_bindings.pyx
+++ b/python/dbus_bindings.pyx
@@ -1053,10 +1053,7 @@ cdef class MessageIter:
tmp_sig = sig[1:-1]
retval = self.append_struct(value, signature = tmp_sig)
elif sig_type == TYPE_VARIANT:
- if isinstance(value, Variant):
- retval = self.append_variant(value)
- else:
- retval = self.append_variant(Variant(value))
+ retval = self.append_variant(Variant(value))
elif sig_type == DICT_ENTRY_BEGIN:
raise TypeError, "Signiture is invalid in append_strict. A dict entry must be part of an array."
else:
@@ -1751,9 +1748,8 @@ def bus_register(Connection connection):
return retval
-NAME_FLAG_ALLOW_REPLACEMENT = 0x1
+NAME_FLAG_PROHIBIT_REPLACEMENT = 0x1
NAME_FLAG_REPLACE_EXISTING = 0x2
-NAME_FLAG_DO_NOT_QUEUE = 0x4
REQUEST_NAME_REPLY_PRIMARY_OWNER = 1
REQUEST_NAME_REPLY_IN_QUEUE = 2