comparison src/stdui/ui_contact_list.py @ 1262:f8a8434dbac7 frontends_multi_profiles

core: improved roster management + misc: - updated methods to no use anymore methods deprecated in Wokkel - use of full jid when it make sense instead of bare jid - getContacts, updateContact and delContact are now asynchronous
author Goffi <goffi@goffi.org>
date Wed, 10 Dec 2014 18:32:33 +0100
parents 3a96920c07b7
children 069ad98b360d
comparison
equal deleted inserted replaced
1261:93bce9e4c9c8 1262:f8a8434dbac7
48 48
49 @param profile: %(doc_profile)s 49 @param profile: %(doc_profile)s
50 @return: list[string] 50 @return: list[string]
51 """ 51 """
52 client = self.host.getClient(profile) 52 client = self.host.getClient(profile)
53 ret = [contact.userhost() for contact in client.roster.getBareJids()] 53 ret = [contact.full() for contact in client.roster.getJids()]
54 ret.sort() 54 ret.sort()
55 return ret 55 return ret
56 56
57 def getGroups(self, new_groups=None, profile=C.PROF_KEY_NONE): 57 def getGroups(self, new_groups=None, profile=C.PROF_KEY_NONE):
58 """Return a sorted list of the groups for that profile 58 """Return a sorted list of the groups for that profile