Mercurial > libervia-web
comparison browser_side/contact.py @ 265:56a307f08ffe
browser_side: sort the the result of ContactList.getConnected()
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 17 Nov 2013 17:43:31 +0100 |
parents | 30c01671e338 |
children | a76243c02074 |
comparison
equal
deleted
inserted
replaced
264:2a93f8e6f989 | 265:56a307f08ffe |
---|---|
310 @param waiting: True if message are waiting""" | 310 @param waiting: True if message are waiting""" |
311 self._contact_list.setState(jid, "messageWaiting", waiting) | 311 self._contact_list.setState(jid, "messageWaiting", waiting) |
312 | 312 |
313 def getConnected(self): | 313 def getConnected(self): |
314 """return a list of all jid (bare jid) connected""" | 314 """return a list of all jid (bare jid) connected""" |
315 return self.connected.keys() | 315 contacts = self.connected.keys() |
316 contacts.sort() | |
317 return contacts | |
316 | 318 |
317 def getContactGroups(self, contact_jid): | 319 def getContactGroups(self, contact_jid): |
318 """Get groups where contact is | 320 """Get groups where contact is |
319 @param group: string of single group, or list of string | 321 @param group: string of single group, or list of string |
320 @param contact_jid: jid to test | 322 @param contact_jid: jid to test |