Mercurial > libervia-backend
comparison frontends/src/quick_frontend/constants.py @ 1938:011eff37e21d
quick frontend, primitivus: quickContactList refactored to handle several profiles at once
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 Apr 2016 18:31:13 +0200 |
parents | 2daf7b4c6756 |
children | 02d21a589be2 |
comparison
equal
deleted
inserted
replaced
1937:14a33c2b1b2a | 1938:011eff37e21d |
---|---|
45 CONTACT_GROUPS = 'groups' | 45 CONTACT_GROUPS = 'groups' |
46 CONTACT_RESOURCES = 'resources' | 46 CONTACT_RESOURCES = 'resources' |
47 CONTACT_MAIN_RESOURCE = 'main_resource' | 47 CONTACT_MAIN_RESOURCE = 'main_resource' |
48 CONTACT_SPECIAL = 'special' | 48 CONTACT_SPECIAL = 'special' |
49 CONTACT_SPECIAL_GROUP = 'group' # group chat special entity | 49 CONTACT_SPECIAL_GROUP = 'group' # group chat special entity |
50 CONTACT_SPECIAL_ALLOWED = (CONTACT_SPECIAL_GROUP,) # set of allowed values for special flag | 50 CONTACT_SELECTED = 'selected' |
51 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE} # set of forbidden names for contact data | 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 | |
53 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE, CONTACT_SELECTED, CONTACT_PROFILE} # set of forbidden names for contact data | |
52 | 54 |
53 # Chats | 55 # Chats |
54 CHAT_ONE2ONE = 'one2one' | 56 CHAT_ONE2ONE = 'one2one' |
55 CHAT_GROUP = 'group' | 57 CHAT_GROUP = 'group' |
56 USER_CHAT_STATES = { | 58 USER_CHAT_STATES = { |
58 "inactive": u'☄', | 60 "inactive": u'☄', |
59 "gone": u'✈', | 61 "gone": u'✈', |
60 "composing": u'✎', | 62 "composing": u'✎', |
61 "paused": u"⦷" | 63 "paused": u"⦷" |
62 } | 64 } |
65 | |
66 # Alerts | |
67 ALERT_MESSAGE = "MESSAGE" # New message received | |
68 ALERT_NICK = "NICK" # our nickname was mentionned | |
63 | 69 |
64 # Blogs | 70 # Blogs |
65 ENTRY_MODE_TEXT = "text" | 71 ENTRY_MODE_TEXT = "text" |
66 ENTRY_MODE_RICH = "rich" | 72 ENTRY_MODE_RICH = "rich" |
67 ENTRY_MODE_XHTML = "xhtml" | 73 ENTRY_MODE_XHTML = "xhtml" |
71 WIDGET_NEW = 'NEW' | 77 WIDGET_NEW = 'NEW' |
72 WIDGET_KEEP = 'KEEP' | 78 WIDGET_KEEP = 'KEEP' |
73 WIDGET_RAISE = 'RAISE' | 79 WIDGET_RAISE = 'RAISE' |
74 WIDGET_RECREATE = 'RECREATE' | 80 WIDGET_RECREATE = 'RECREATE' |
75 | 81 |
82 # Updates (generic) | |
83 UPDATE_DELETE = 'DELETE' | |
84 UPDATE_MODIFY = 'MODIFY' | |
85 UPDATE_ADD = 'ADD' | |
86 UPDATE_SELECTION = 'SELECTION' | |
87 UPDATE_STRUCTURE = 'STRUCTURE' # high level update (i.e. not item level but organisation of items) | |
88 | |
76 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu'} | 89 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu'} |