summaryrefslogtreecommitdiff
path: root/butterfly/connection.py
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2009-06-25 11:33:47 -0400
committerLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2009-08-24 15:20:07 -0400
commit8002f3f96b443d3824067fa979ca5733a02e650b (patch)
tree13020f66c144734178e5a4bca8dc6bad828d9337 /butterfly/connection.py
parent80ec440b00bda0b5daad037830ab6a9278d3aa61 (diff)
Adjust to papyon "API" changes
Diffstat (limited to 'butterfly/connection.py')
-rw-r--r--butterfly/connection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/butterfly/connection.py b/butterfly/connection.py
index f80034d..ced5f26 100644
--- a/butterfly/connection.py
+++ b/butterfly/connection.py
@@ -243,6 +243,7 @@ class ButterflyConnection(telepathy.server.Connection,
self._client.profile.presence = presence
if message is not None:
self._client.profile.personal_message = message
+ self._client.profile.end_point_name = "PAPYON"
if (presence is not None) or (message is not None):
self._presence_changed(ButterflyHandleFactory(self, 'self'),
@@ -286,8 +287,8 @@ class ButterflyConnection(telepathy.server.Connection,
# papyon.event.InviteEventInterface
def on_invite_conference(self, call):
logger.debug("Call invite")
- handle = ButterflyHandleFactory(self, 'contact', call.contact.account,
- call.contact.network_id)
+ handle = ButterflyHandleFactory(self, 'contact', call.peer.account,
+ call.peer.network_id)
props = self._generate_props(telepathy.CHANNEL_TYPE_STREAMED_MEDIA,
handle, False)