Fix bug in get_services; self._services.values() is a list of lists of services

This commit is contained in:
Dan Williams 2006-08-16 23:07:28 -04:00
parent 3b8dbb0836
commit ea3b66aa0f

View File

@ -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):