changeset 1520:9667103a0c10

core (contants): added PROF_KEY_ALL en PLUG_TYPE_* constants
author Goffi <goffi@goffi.org>
date Fri, 25 Sep 2015 19:19:12 +0200
parents fbe86b5d156f
children d2ab9c62ac3a
files src/core/constants.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/constants.py	Fri Sep 25 19:19:12 2015 +0200
+++ b/src/core/constants.py	Fri Sep 25 19:19:12 2015 +0200
@@ -76,11 +76,13 @@
     ## 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 @@
     MESS_TYPE_HEADLINE = 'headline'
     MESS_TYPE_NORMAL = 'normal'
 
+
     ## PRESENCE ##
     PRESENCE_UNAVAILABLE = 'unavailable'
     PRESENCE_SHOW_AWAY = 'away'
@@ -127,6 +130,14 @@
 
 
     ## 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'