[PATCH 09/17] dbus/_dbus.py: in SignalMatch, use get_name_owner()

John (J5) Palmieri johnp at redhat.com
Mon Apr 30 14:52:02 PDT 2007


Is this right btw?  What happens if the bus name changes owners but the
original match was for the bus name and not the unique name?

On Mon, 2007-04-30 at 11:41 +0100, Simon McVittie wrote:
> diff --git a/dbus/_dbus.py b/dbus/_dbus.py
> index 8207aa8..fc070ae 100644
> --- a/dbus/_dbus.py
> +++ b/dbus/_dbus.py
> @@ -94,7 +94,7 @@ class SignalMatch(object):
>          self._handler = handler
>          if (sender is not None and sender[:1] != ':'
>              and sender != BUS_DAEMON_NAME):
> -            self.sender_unique = conn.get_object(BUS_DAEMON_NAME, BUS_DAEMON_PATH).GetNameOwner(sender, dbus_interface=BUS_DAEMON_IFACE)
> +            self.sender_unique = conn.get_name_owner(sender)
>          else:
>              self.sender_unique = sender
>          self._utf8_strings = utf8_strings
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus



More information about the dbus mailing list