diff --git a/sugar/chat/GroupChat.py b/sugar/chat/GroupChat.py index d9e723e5..ea2c4a7f 100644 --- a/sugar/chat/GroupChat.py +++ b/sugar/chat/GroupChat.py @@ -20,7 +20,7 @@ class GroupChat(Chat): self._pservice.track_service_type(GroupChat.SERVICE_TYPE) service = self._pservice.get_activity_service(activity, GroupChat.SERVICE_TYPE) if service is not None: - self._service_appeared(self._pservice, None, service) + self._service_appeared_cb(self._pservice, None, service) def _service_appeared_cb(self, pservice, buddy, service): if service.get_activity_uid() == self._activity.get_id(): diff --git a/sugar/presence/PresenceService.py b/sugar/presence/PresenceService.py index 554b22ca..a294f60b 100644 --- a/sugar/presence/PresenceService.py +++ b/sugar/presence/PresenceService.py @@ -136,7 +136,7 @@ class PresenceService(gobject.GObject): uid = activity.get_id() if self._activity_services.has_key(uid): services = self._activity_services[uid] - for service in services: + for (buddy, service) in services: if service.get_type() == short_stype: return service return None