Mercurial > libervia-backend
comparison src/core/constants.py @ 1417:176de79c8c39
core, plugin XEP-0045, frontends: change frontend method "setStatusOnline" for "setPresenceStatus":
- remove parameter "online" (can be guess from "presence" value)
- process "statuses" dict in quick_frontend, so this method can get a simple unicode "status"
- add C.PRESENCE_STATUSES_DEFAULT to define the key to use for fallback status
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 20 Apr 2015 16:39:38 +0200 |
parents | 069ad98b360d |
children | 227856b13d7a |
comparison
equal
deleted
inserted
replaced
1416:a419da93afef | 1417:176de79c8c39 |
---|---|
96 PRESENCE_SHOW_CHAT = 'chat' | 96 PRESENCE_SHOW_CHAT = 'chat' |
97 PRESENCE_SHOW_DND = 'dnd' | 97 PRESENCE_SHOW_DND = 'dnd' |
98 PRESENCE_SHOW_XA = 'xa' | 98 PRESENCE_SHOW_XA = 'xa' |
99 PRESENCE_SHOW = 'show' | 99 PRESENCE_SHOW = 'show' |
100 PRESENCE_STATUSES = 'statuses' | 100 PRESENCE_STATUSES = 'statuses' |
101 PRESENCE_STATUSES_DEFAULT = 'default' | |
101 PRESENCE_PRIORITY = 'priority' | 102 PRESENCE_PRIORITY = 'priority' |
102 | 103 |
103 | 104 |
104 ## Configuration ## | 105 ## Configuration ## |
105 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend) | 106 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend) |