Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/presenceservice.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 16:42:00 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 16:42:00 (GMT)
commit006df6ff75871a42b06f442833f0726704f74f33 (patch)
tree332a7e4b4b87825afac1d0cb8507f8df58df8fca /src/presenceservice.py
parent1fef4c904eb76566922c285de05a965dcf5d9d6c (diff)
Make Buddy responsible for initial property lookup when a Tp handle is added
Diffstat (limited to 'src/presenceservice.py')
-rw-r--r--src/presenceservice.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py
index e5505a5..22e76c3 100644
--- a/src/presenceservice.py
+++ b/src/presenceservice.py
@@ -211,19 +211,20 @@ class PresenceService(ExportedGObject):
self._buddies[objid] = buddy
return buddy
- def _contact_online(self, tp, objid, handle, identifier, props):
+ def _contact_online(self, tp, objid, handle, identifier):
_logger.debug('Handle %u, .../%s is now online', handle, objid)
buddy = self.get_buddy(objid)
self._handles_buddies[tp][handle] = buddy
# store the handle of the buddy for this CM
buddy.add_telepathy_handle(tp, handle, identifier)
- buddy.set_properties(props)
- # kick off a request for their current activities
- # FIXME: move this to the Buddy?
conn = tp.get_connection()
+ # Kick off a request for their current activities. This isn't done
+ # internally by the Buddy itself, because when we get the activities
+ # back, we actually want to feed them to the Activity objects.
+
def got_activities(activities):
self._buddy_activities_changed(tp, handle, activities)
conn[CONN_INTERFACE_BUDDY_INFO].GetActivities(handle,