[Bug 23791] New: Connection introspection with GetInterfaces does not work
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 8 12:18:28 CEST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=23791
Summary: Connection introspection with GetInterfaces does not
work
Product: Telepathy
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: telepathy-python
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: alban.crequy at collabora.co.uk
In my Rhythmbox plugin, I use this code:
http://git.collabora.co.uk/?p=user/alban/rhythmbox-plugin-telepathy.git;a=blob;f=rb-tp-export/__init__.py;h=15d93127d5e5ca64bf8597b3c2b646f6e55cff98;hb=HEAD#l138
conn = Connection(service_name, path, self.bus)
# FIXME: I don't understand why _valid_interfaces is not correctly
# updated after GetInterfaces is called in the constructor
conn._valid_interfaces.add(CONNECTION_INTERFACE_REQUESTS)
channel = conn.create_channel(...
Modifying "_valid_interfaces" manually should not be needed. I check with
dbus-monitor, and GetInterfaces is called successfully and returns the right
interfaces (including the "requests" interface). But then _valid_interfaces
does not contain it, so create_channel does not work.
As a workaround, I add the requests interface manually, but there is a bug
somewhere.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list