Mercurial > libervia-backend
comparison src/core/constants.py @ 1263:cfd636203e8f frontends_multi_profiles
core: misc improvments:
- added some constants for message types and presence
- removed profile authentification specific methods in favor of a more generic "validated" key
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 10 Dec 2014 18:36:11 +0100 |
parents | 2e1b4e7c8eb8 |
children | faa1129559b8 |
comparison
equal
deleted
inserted
replaced
1262:f8a8434dbac7 | 1263:cfd636203e8f |
---|---|
80 ENTITY_CAP_HASH = 'CAP_HASH' | 80 ENTITY_CAP_HASH = 'CAP_HASH' |
81 | 81 |
82 | 82 |
83 ## Messages ## | 83 ## Messages ## |
84 MESS_TYPE_INFO = 'info' | 84 MESS_TYPE_INFO = 'info' |
85 MESS_TYPE_CHAT = 'chat' | |
86 MESS_TYPE_ERROR = 'error' | |
87 MESS_TYPE_GROUPCHAT = 'groupchat' | |
88 MESS_TYPE_HEADLINE = 'headline' | |
89 MESS_TYPE_NORMAL = 'normal' | |
90 | |
91 ## PRESENCE ## | |
92 PRESENCE_UNAVAILABLE = 'unavailable' | |
93 PRESENCE_SHOW_AWAY = 'away' | |
94 PRESENCE_SHOW_CHAT = 'chat' | |
95 PRESENCE_SHOW_DND = 'dnd' | |
96 PRESENCE_SHOW_XA = 'xa' | |
97 PRESENCE_SHOW = 'show' | |
98 PRESENCE_STATUSES = 'statuses' | |
99 PRESENCE_PRIORITY = 'priority' | |
100 | |
85 | 101 |
86 ## Configuration ## | 102 ## Configuration ## |
87 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend) | 103 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend) |
88 | 104 |
89 ## Configuration ## | 105 ## Configuration ## |