summaryrefslogtreecommitdiff
path: root/sunshine/capabilities.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-08 22:45:09 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-08 22:45:09 +0200
commit9b47417aa8dd8eb209a3a2a8ffef2e8ace96e0df (patch)
treeddfc1758c290283b54b45bf7c7b79eceda73ccf2 /sunshine/capabilities.py
parentf5540a41be97210d194263d0bf21170524469c69 (diff)
Fixes in capabilities.
Diffstat (limited to 'sunshine/capabilities.py')
-rw-r--r--sunshine/capabilities.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sunshine/capabilities.py b/sunshine/capabilities.py
index e74759a..d5276cd 100644
--- a/sunshine/capabilities.py
+++ b/sunshine/capabilities.py
@@ -138,16 +138,13 @@ class SunshineCapabilities(telepathy.server.ConnectionInterfaceCapabilities,
signature='ua(a{sv}as)')
self.ContactCapabilitiesChanged(updated)
- # papyon.event.ContactEventInterface
def on_contact_client_capabilities_changed(self, contact):
self._update_capabilities(contact)
- # papyon.event.AddressBookEventInterface
- def on_contact_added(self, contact):
+
+ def contactAdded(self, handle):
"""When we add a contact in our contact list, add the
capabilities to create text channel to the contact"""
- handle = SunshineHandleFactory(self._conn_ref(), 'contact',
- str(contact), None)
self.add_text_capabilities([handle])
def add_text_capabilities(self, contacts_handles):