Mercurial > libervia-backend
diff frontends/src/wix/contact_list.py @ 737:378af36155c2
frontends: set and retrieve your own presence and status
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 25 Nov 2013 01:56:07 +0100 |
parents | 6246eb6d64a0 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/frontends/src/wix/contact_list.py Sat Nov 23 10:21:40 2013 +0100 +++ b/frontends/src/wix/contact_list.py Mon Nov 25 01:56:07 2013 +0100 @@ -114,7 +114,7 @@ _show = self.getCache(jid,'show') if _show == None or _show == 'unavailable': return None - show = filter(lambda x : x[0] == _show, Const.PRESENCE)[0] + show = [x for x in Const.PRESENCE if x[0] == _show][0] #show[0]==shortcut #show[1]==human readable