From ea2a3e584d476e17b969756b53f78fe6516c2598 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 25 Sep 2015 19:19:12 +0200 Subject: [PATCH] core (contants): added PROF_KEY_ALL en PLUG_TYPE_* constants --- src/core/constants.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/constants.py b/src/core/constants.py index 72941f9c..a018ecf1 100644 --- a/src/core/constants.py +++ b/src/core/constants.py @@ -76,11 +76,13 @@ class Const(object): ## Profile and entities ## PROF_KEY_NONE = '@NONE@' PROF_KEY_DEFAULT = '@DEFAULT@' + PROF_KEY_ALL = '@ALL@' ENTITY_ALL = '@ALL@' ENTITY_ALL_RESOURCES = '@ALL_RESOURCES@' ENTITY_MAIN_RESOURCE = '@MAIN_RESOURCE@' ENTITY_CAP_HASH = 'CAP_HASH' + ## Roster jids selection ## PUBLIC = 'PUBLIC' ALL = 'ALL' # ALL means all known contacts, while PUBLIC means everybody, known or not @@ -96,6 +98,7 @@ class Const(object): MESS_TYPE_HEADLINE = 'headline' MESS_TYPE_NORMAL = 'normal' + ## PRESENCE ## PRESENCE_UNAVAILABLE = 'unavailable' PRESENCE_SHOW_AWAY = 'away' @@ -127,6 +130,14 @@ class Const(object): ## Plugins ## + + # Types + PLUG_TYPE_XEP = "XEP" + PLUG_TYPE_MISC = "MISC" + PLUG_TYPE_EXP = "EXP" + PLUG_TYPE_SEC = "SEC" + + # names of widely used plugins TEXT_CMDS = 'TEXT-COMMANDS'