Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1434:b06047e1c1fb
primitivus: fix setting the presence and status
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 10 Jun 2015 09:18:34 +0200 |
parents | 176de79c8c39 |
children | 731fbed0b9cf |
comparison
equal
deleted
inserted
replaced
1433:5d42e2219d7c | 1434:b06047e1c1fb |
---|---|
115 self.host.onExit() | 115 self.host.onExit() |
116 raise urwid.ExitMainLoop() | 116 raise urwid.ExitMainLoop() |
117 elif command == 'messages': | 117 elif command == 'messages': |
118 wid = sat_widgets.GenericList(logging.memoryGet()) | 118 wid = sat_widgets.GenericList(logging.memoryGet()) |
119 self.host.selectWidget(wid) | 119 self.host.selectWidget(wid) |
120 # FIXME: reactivate the command | |
120 # elif command == 'presence': | 121 # elif command == 'presence': |
121 # values = [value for value in commonConst.PRESENCE.keys()] | 122 # values = [value for value in commonConst.PRESENCE.keys()] |
122 # values = [value if value else 'online' for value in values] # the empty value actually means 'online' | 123 # values = [value if value else 'online' for value in values] # the empty value actually means 'online' |
123 # if args and args[0] in values: | 124 # if args and args[0] in values: |
124 # presence = '' if args[0] == 'online' else args[0] | 125 # presence = '' if args[0] == 'online' else args[0] |