comparison frontends/src/quick_frontend/constants.py @ 2460:feaacc462fef

core: moved CHAT_* constants from frontends to core constants + uses constants for MESS_TYPE_* in sendMessage
author Goffi <goffi@goffi.org>
date Wed, 03 Jan 2018 00:13:48 +0100
parents 8b37a62336c3
children 0046283a285d
comparison
equal deleted inserted replaced
2459:a9c092bf4ee9 2460:feaacc462fef
51 CONTACT_PROFILE = 'profile' # used in handler to track where the contact is coming from 51 CONTACT_PROFILE = 'profile' # used in handler to track where the contact is coming from
52 CONTACT_SPECIAL_ALLOWED = (CONTACT_SPECIAL_GROUP,) # allowed values for special flag 52 CONTACT_SPECIAL_ALLOWED = (CONTACT_SPECIAL_GROUP,) # allowed values for special flag
53 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE, CONTACT_SELECTED, CONTACT_PROFILE} # set of forbidden names for contact data 53 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE, CONTACT_SELECTED, CONTACT_PROFILE} # set of forbidden names for contact data
54 54
55 # Chats 55 # Chats
56 CHAT_ONE2ONE = 'one2one'
57 CHAT_GROUP = 'group'
58 CHAT_STATE_ICON = { 56 CHAT_STATE_ICON = {
59 "": u" ", 57 "": u" ",
60 "active": u'✔', 58 "active": u'✔',
61 "inactive": u'☄', 59 "inactive": u'☄',
62 "gone": u'✈', 60 "gone": u'✈',