Fix bug in get_services; self._services.values() is a list of lists of services
This commit is contained in:
parent
3b8dbb0836
commit
ea3b66aa0f
@ -95,7 +95,12 @@ class Activity(object):
|
|||||||
return self._activity_id
|
return self._activity_id
|
||||||
|
|
||||||
def get_services(self):
|
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):
|
def get_services_of_type(self, stype):
|
||||||
if self._services.has_key(stype):
|
if self._services.has_key(stype):
|
||||||
|
Loading…
Reference in New Issue
Block a user