comparison frontends/src/quick_frontend/constants.py @ 1385:0dca4f9b264d

primitivus: prefill "Join MUC" dialog with only the JID's node part when in debug version + display error directly from the DBus object
author souliane <souliane@mailoo.org>
date Tue, 24 Mar 2015 07:38:40 +0100
parents 3dae6964c071
children 069ad98b360d
comparison
equal deleted inserted replaced
1384:73f8582c7c99 1385:0dca4f9b264d
40 SAT_PARAM_SEPARATOR = "_XMLUI_PARAM_" # used to have unique elements names 40 SAT_PARAM_SEPARATOR = "_XMLUI_PARAM_" # used to have unique elements names
41 XMLUI_STATUS_VALIDATED = "validated" 41 XMLUI_STATUS_VALIDATED = "validated"
42 XMLUI_STATUS_CANCELLED = constants.Const.XMLUI_DATA_CANCELLED 42 XMLUI_STATUS_CANCELLED = constants.Const.XMLUI_DATA_CANCELLED
43 43
44 # MUC 44 # MUC
45 USER_CHAT_STATES = { 45 DEFAULT_MUC_NODE = u'sat'
46 "active": u'✔', 46 DEFAULT_MUC = DEFAULT_MUC_NODE if constants.Const.APP_VERSION.endswith(u'D') else u"%s@%s" % (DEFAULT_MUC_NODE, 'chat.jabberfr.org')
47 "inactive": u'☄',
48 "gone": u'✈',
49 "composing": u'✎',
50 "paused": u"⦷"
51 }
52 47
53 # Roster 48 # Roster
54 CONTACT_GROUPS = 'groups' 49 CONTACT_GROUPS = 'groups'
55 CONTACT_RESOURCES = 'resources' 50 CONTACT_RESOURCES = 'resources'
56 CONTACT_MAIN_RESOURCE = 'main_resource' 51 CONTACT_MAIN_RESOURCE = 'main_resource'
60 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE} # set of forbidden names for contact data 55 CONTACT_DATA_FORBIDDEN = {CONTACT_GROUPS, CONTACT_RESOURCES, CONTACT_MAIN_RESOURCE} # set of forbidden names for contact data
61 56
62 # Chats 57 # Chats
63 CHAT_ONE2ONE = 'one2one' 58 CHAT_ONE2ONE = 'one2one'
64 CHAT_GROUP = 'group' 59 CHAT_GROUP = 'group'
60 USER_CHAT_STATES = {
61 "active": u'✔',
62 "inactive": u'☄',
63 "gone": u'✈',
64 "composing": u'✎',
65 "paused": u"⦷"
66 }
65 67
66 # Widgets management 68 # Widgets management
67 # FIXME: should be in quick_frontend.constant, but Libervia doesn't inherit from it 69 # FIXME: should be in quick_frontend.constant, but Libervia doesn't inherit from it
68 WIDGET_NEW = 'NEW' 70 WIDGET_NEW = 'NEW'
69 WIDGET_KEEP = 'KEEP' 71 WIDGET_KEEP = 'KEEP'