From ea3b66aa0f74d5ee91369d3cc869912993fe550e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 16 Aug 2006 23:07:28 -0400 Subject: [PATCH] Fix bug in get_services; self._services.values() is a list of lists of services --- shell/PresenceService/Activity.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/PresenceService/Activity.py b/shell/PresenceService/Activity.py index eda302db..6aa27195 100644 --- a/shell/PresenceService/Activity.py +++ b/shell/PresenceService/Activity.py @@ -95,7 +95,12 @@ class Activity(object): return self._activity_id def get_services(self): - return self._services.values() + ret = [] + for serv_list in self._services.values(): + for service in serv_list: + if service not in ret: + ret.append(service) + return ret def get_services_of_type(self, stype): if self._services.has_key(stype):