Mercurial > libervia-backend
diff frontends/src/wix/contact_list.py @ 736:6246eb6d64a0
frontends: define the constants with classes and inheritance instance of using __builtin__
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 23 Nov 2013 10:21:40 +0100 |
parents | f7878ad3c846 |
children | 378af36155c2 |
line wrap: on
line diff
--- a/frontends/src/wix/contact_list.py Sun Nov 24 11:22:20 2013 +0100 +++ b/frontends/src/wix/contact_list.py Sat Nov 23 10:21:40 2013 +0100 @@ -19,6 +19,7 @@ import wx from sat_frontends.quick_frontend.quick_contact_list import QuickContactList +from sat_frontends.wix.constants import Const from logging import debug, info, error from cgi import escape from sat.tools.jid import JID @@ -113,7 +114,7 @@ _show = self.getCache(jid,'show') if _show == None or _show == 'unavailable': return None - show = filter(lambda x : x[0] == _show, const_STATUS)[0] + show = filter(lambda x : x[0] == _show, Const.PRESENCE)[0] #show[0]==shortcut #show[1]==human readable