Mercurial > libervia-backend
comparison src/core/sat_main.py @ 768:e1c64a5b4588
core: fix bridge method getContactsFromGroup return value (list of jids --> list of strings)
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 18 Dec 2013 10:39:19 +0100 |
parents | 93bd868b8fb6 |
children | bfabeedbf32e |
comparison
equal
deleted
inserted
replaced
767:318acc83a392 | 768:e1c64a5b4588 |
---|---|
307 | 307 |
308 def getContactsFromGroup(self, group, profile_key): | 308 def getContactsFromGroup(self, group, profile_key): |
309 client = self.getClient(profile_key) | 309 client = self.getClient(profile_key) |
310 if not client: | 310 if not client: |
311 raise exceptions.ProfileUnknownError(_("Asking group's contacts for a non-existant profile")) | 311 raise exceptions.ProfileUnknownError(_("Asking group's contacts for a non-existant profile")) |
312 return client.roster.getJidsFromGroup(group) | 312 return [jid.full() for jid in client.roster.getJidsFromGroup(group)] |
313 | 313 |
314 def purgeClient(self, profile): | 314 def purgeClient(self, profile): |
315 """Remove reference to a profile client and purge cache | 315 """Remove reference to a profile client and purge cache |
316 the garbage collector can then free the memory""" | 316 the garbage collector can then free the memory""" |
317 try: | 317 try: |