comparison src/core/constants.py @ 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 4c4f88d7b156
children e2ed8009e66e
comparison
equal deleted inserted replaced
1519:fbe86b5d156f 1520:9667103a0c10
74 74
75 75
76 ## Profile and entities ## 76 ## Profile and entities ##
77 PROF_KEY_NONE = '@NONE@' 77 PROF_KEY_NONE = '@NONE@'
78 PROF_KEY_DEFAULT = '@DEFAULT@' 78 PROF_KEY_DEFAULT = '@DEFAULT@'
79 PROF_KEY_ALL = '@ALL@'
79 ENTITY_ALL = '@ALL@' 80 ENTITY_ALL = '@ALL@'
80 ENTITY_ALL_RESOURCES = '@ALL_RESOURCES@' 81 ENTITY_ALL_RESOURCES = '@ALL_RESOURCES@'
81 ENTITY_MAIN_RESOURCE = '@MAIN_RESOURCE@' 82 ENTITY_MAIN_RESOURCE = '@MAIN_RESOURCE@'
82 ENTITY_CAP_HASH = 'CAP_HASH' 83 ENTITY_CAP_HASH = 'CAP_HASH'
84
83 85
84 ## Roster jids selection ## 86 ## Roster jids selection ##
85 PUBLIC = 'PUBLIC' 87 PUBLIC = 'PUBLIC'
86 ALL = 'ALL' # ALL means all known contacts, while PUBLIC means everybody, known or not 88 ALL = 'ALL' # ALL means all known contacts, while PUBLIC means everybody, known or not
87 GROUP = 'GROUP' 89 GROUP = 'GROUP'
93 MESS_TYPE_CHAT = 'chat' 95 MESS_TYPE_CHAT = 'chat'
94 MESS_TYPE_ERROR = 'error' 96 MESS_TYPE_ERROR = 'error'
95 MESS_TYPE_GROUPCHAT = 'groupchat' 97 MESS_TYPE_GROUPCHAT = 'groupchat'
96 MESS_TYPE_HEADLINE = 'headline' 98 MESS_TYPE_HEADLINE = 'headline'
97 MESS_TYPE_NORMAL = 'normal' 99 MESS_TYPE_NORMAL = 'normal'
100
98 101
99 ## PRESENCE ## 102 ## PRESENCE ##
100 PRESENCE_UNAVAILABLE = 'unavailable' 103 PRESENCE_UNAVAILABLE = 'unavailable'
101 PRESENCE_SHOW_AWAY = 'away' 104 PRESENCE_SHOW_AWAY = 'away'
102 PRESENCE_SHOW_CHAT = 'chat' 105 PRESENCE_SHOW_CHAT = 'chat'
125 ['%s/' % path for path in list(BaseDirectory.load_config_paths(APP_NAME_FILE))] 128 ['%s/' % path for path in list(BaseDirectory.load_config_paths(APP_NAME_FILE))]
126 ] 129 ]
127 130
128 131
129 ## Plugins ## 132 ## Plugins ##
133
134 # Types
135 PLUG_TYPE_XEP = "XEP"
136 PLUG_TYPE_MISC = "MISC"
137 PLUG_TYPE_EXP = "EXP"
138 PLUG_TYPE_SEC = "SEC"
139
140
130 # names of widely used plugins 141 # names of widely used plugins
131 TEXT_CMDS = 'TEXT-COMMANDS' 142 TEXT_CMDS = 'TEXT-COMMANDS'
132 143
133 # PubSub event categories 144 # PubSub event categories
134 PS_PEP = "PEP" 145 PS_PEP = "PEP"