comparison libervia/backend/core/constants.py @ 4184:50c919dfe61b

plugin XEP-0050: small code quality improvements + add `C.ENTITY_ADMINS` magic key to allow administrators profiles
author Goffi <goffi@goffi.org>
date Sun, 10 Dec 2023 15:08:08 +0100
parents da7d360a87be
children b26339343076
comparison
equal deleted inserted replaced
4183:6784d07b99c8 4184:50c919dfe61b
90 90
91 ## Profile and entities ## 91 ## Profile and entities ##
92 PROF_KEY_NONE = "@NONE@" 92 PROF_KEY_NONE = "@NONE@"
93 PROF_KEY_DEFAULT = "@DEFAULT@" 93 PROF_KEY_DEFAULT = "@DEFAULT@"
94 PROF_KEY_ALL = "@ALL@" 94 PROF_KEY_ALL = "@ALL@"
95 #: anybody
95 ENTITY_ALL = "@ALL@" 96 ENTITY_ALL = "@ALL@"
97 #: Bare jids of administrators
98 ENTITY_ADMINS = "@ADMIN@"
99 #: bare jid of client's profile
100 ENTITY_PROFILE_BARE = "@PROFILE_BAREJID@"
96 ENTITY_ALL_RESOURCES = "@ALL_RESOURCES@" 101 ENTITY_ALL_RESOURCES = "@ALL_RESOURCES@"
97 ENTITY_MAIN_RESOURCE = "@MAIN_RESOURCE@" 102 ENTITY_MAIN_RESOURCE = "@MAIN_RESOURCE@"
98 ENTITY_CAP_HASH = "CAP_HASH" 103 ENTITY_CAP_HASH = "CAP_HASH"
99 ENTITY_TYPE = "type" 104 ENTITY_TYPE = "type"
100 ENTITY_TYPE_MUC = "MUC" 105 ENTITY_TYPE_MUC = "MUC"