summaryrefslogtreecommitdiff
path: root/sunshine/channel/contact_list.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-11 22:40:55 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-11 22:40:55 +0200
commite106dccb475ee09da94d8ffe3ae1ad122f6ee994 (patch)
tree8fb9bd0e0fb47cb86d477511b5f199c81aaaf839 /sunshine/channel/contact_list.py
parent9b47417aa8dd8eb209a3a2a8ffef2e8ace96e0df (diff)
Many fixes and modifications. Capabilities implemented, better channel naming. Im not sure is that stable, need more testing.
Diffstat (limited to 'sunshine/channel/contact_list.py')
-rw-r--r--sunshine/channel/contact_list.py7
1 files changed, 5 insertions, 2 deletions
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)