comparison src/core/constants.py @ 1776:4fc1bf1af48f

plugin XEP-0313: cleaning and improvments: - moved common namespaces to core.constants - removed useless dependencies and recommendations - removed all bride methods as they where there only for testing purpose - don't use a plugin dict to store MAM clients, put them in profiles' clients instead - removed message trigger in favor of an observer which is triggered only when specific queryid is used - new getArchives method which grab all result and return them all at once
author Goffi <goffi@goffi.org>
date Tue, 05 Jan 2016 23:20:22 +0100
parents d17772b0fe22
children fd788d24277a
comparison
equal deleted inserted replaced
1775:0876352459e5 1776:4fc1bf1af48f
98 MESS_TYPE_GROUPCHAT = 'groupchat' 98 MESS_TYPE_GROUPCHAT = 'groupchat'
99 MESS_TYPE_HEADLINE = 'headline' 99 MESS_TYPE_HEADLINE = 'headline'
100 MESS_TYPE_NORMAL = 'normal' 100 MESS_TYPE_NORMAL = 'normal'
101 101
102 102
103 ## PRESENCE ## 103 ## Presence ##
104 PRESENCE_UNAVAILABLE = 'unavailable' 104 PRESENCE_UNAVAILABLE = 'unavailable'
105 PRESENCE_SHOW_AWAY = 'away' 105 PRESENCE_SHOW_AWAY = 'away'
106 PRESENCE_SHOW_CHAT = 'chat' 106 PRESENCE_SHOW_CHAT = 'chat'
107 PRESENCE_SHOW_DND = 'dnd' 107 PRESENCE_SHOW_DND = 'dnd'
108 PRESENCE_SHOW_XA = 'xa' 108 PRESENCE_SHOW_XA = 'xa'
109 PRESENCE_SHOW = 'show' 109 PRESENCE_SHOW = 'show'
110 PRESENCE_STATUSES = 'statuses' 110 PRESENCE_STATUSES = 'statuses'
111 PRESENCE_STATUSES_DEFAULT = 'default' 111 PRESENCE_STATUSES_DEFAULT = 'default'
112 PRESENCE_PRIORITY = 'priority' 112 PRESENCE_PRIORITY = 'priority'
113
114
115 ## Common namespaces ##
116 NS_CLIENT = 'jabber:client'
117 NS_FORWARD = 'urn:xmpp:forward:0'
118 NS_DELAY = 'urn:xmpp:delay'
113 119
114 120
115 ## Configuration ## 121 ## Configuration ##
116 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend) 122 if BaseDirectory: # skipped when xdg module is not available (should not happen in backend)
117 123