From 5485a4f958d3bb9d7a6671b966fb55559dd9580c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 19 Jun 2006 21:24:24 -0400 Subject: [PATCH] Fix some typos --- sugar/chat/GroupChat.py | 2 +- sugar/presence/PresenceService.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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