diff 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
line wrap: on
line diff
--- a/src/core/constants.py	Tue Jan 05 23:20:22 2016 +0100
+++ b/src/core/constants.py	Tue Jan 05 23:20:22 2016 +0100
@@ -100,7 +100,7 @@
     MESS_TYPE_NORMAL = 'normal'
 
 
-    ## PRESENCE ##
+    ## Presence ##
     PRESENCE_UNAVAILABLE = 'unavailable'
     PRESENCE_SHOW_AWAY = 'away'
     PRESENCE_SHOW_CHAT = 'chat'
@@ -112,6 +112,12 @@
     PRESENCE_PRIORITY = 'priority'
 
 
+    ## Common namespaces ##
+    NS_CLIENT = 'jabber:client'
+    NS_FORWARD = 'urn:xmpp:forward:0'
+    NS_DELAY = 'urn:xmpp:delay'
+
+
     ## Configuration ##
     if BaseDirectory:  # skipped when xdg module is not available (should not happen in backend)