From e106dccb475ee09da94d8ffe3ae1ad122f6ee994 Mon Sep 17 00:00:00 2001 From: Krzysztof Klinikowski Date: Sun, 11 Apr 2010 22:40:55 +0200 Subject: Many fixes and modifications. Capabilities implemented, better channel naming. Im not sure is that stable, need more testing. --- sunshine/channel/contact_list.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sunshine/channel/contact_list.py') diff --git a/sunshine/channel/contact_list.py b/sunshine/channel/contact_list.py index 63bcaa4..e942a03 100644 --- a/sunshine/channel/contact_list.py +++ b/sunshine/channel/contact_list.py @@ -124,9 +124,9 @@ class SunshineListChannel( telepathy.server.ChannelInterfaceGroup): "Abstract Contact List channels" - def __init__(self, connection, manager, props): + def __init__(self, connection, manager, props, object_path=None): self._conn_ref = weakref.ref(connection) - telepathy.server.ChannelTypeContactList.__init__(self, connection, manager, props) + telepathy.server.ChannelTypeContactList.__init__(self, connection, manager, props, object_path=None) telepathy.server.ChannelInterfaceGroup.__init__(self) self._populate(connection) @@ -184,6 +184,9 @@ class SunshineListChannel( if ad: added.add(handle) if lp: local_pending.add(handle) if rp: remote_pending.add(handle) + #self._conn_ref()._populate_capabilities() + #capabilities for self handle + self._conn_ref().contactAdded(self._conn_ref().GetSelfHandle()) self.MembersChanged('', added, (), local_pending, remote_pending, 0, telepathy.CHANNEL_GROUP_CHANGE_REASON_NONE) -- cgit v1.2.1