comparison src/core/constants.py @ 1104:490a8a4536b6

core (constants): added constants mainly used in XMLUI
author Goffi <goffi@goffi.org>
date Mon, 11 Aug 2014 19:10:24 +0200
parents 0eefc74c346b
children 6bdcaeafca11
comparison
equal deleted inserted replaced
1103:a096b8579a3c 1104:490a8a4536b6
96 ## Plugins ## 96 ## Plugins ##
97 # names of widely used plugins 97 # names of widely used plugins
98 TEXT_CMDS = 'TEXT-COMMANDS' 98 TEXT_CMDS = 'TEXT-COMMANDS'
99 99
100 100
101 ## XMLUI ##
102 XMLUI_WINDOW = 'window'
103 XMLUI_POPUP = 'popup'
104 XMLUI_FORM = 'form'
105 XMLUI_PARAM = 'param'
106 XMLUI_DIALOG = 'dialog'
107 XMLUI_DIALOG_CONFIRM = "confirm"
108 XMLUI_DIALOG_MESSAGE = "message"
109 XMLUI_DIALOG_NOTE = "note"
110 XMLUI_DIALOG_FILE = "file"
111 XMLUI_DATA_ANSWER = "answer"
112 XMLUI_DATA_CANCELLED = "cancelled"
113 XMLUI_DATA_TYPE = "type"
114 XMLUI_DATA_MESS = "message"
115 XMLUI_DATA_LVL = "level"
116 XMLUI_DATA_LVL_INFO = "info"
117 XMLUI_DATA_LVL_WARNING = "info"
118 XMLUI_DATA_LVL_ERROR = "info"
119 XMLUI_DATA_LVL_DEFAULT = XMLUI_DATA_LVL_INFO
120 XMLUI_DATA_BTNS_SET = "buttons_set"
121 XMLUI_DATA_BTNS_SET_OKCANCEL = "ok/cancel"
122 XMLUI_DATA_BTNS_SET_YESNO = "yes/no"
123 XMLUI_DATA_BTNS_SET_DEFAULT = XMLUI_DATA_BTNS_SET_OKCANCEL
124 XMLUI_DATA_FILETYPE = 'filetype'
125 XMLUI_DATA_FILETYPE_FILE = "file"
126 XMLUI_DATA_FILETYPE_DIR = "dir"
127 XMLUI_DATA_FILETYPE_DEFAULT = XMLUI_DATA_FILETYPE_FILE
128
129
101 ## Logging ## 130 ## Logging ##
102 LOG_BACKEND_STANDARD = 'standard' 131 LOG_BACKEND_STANDARD = 'standard'
103 LOG_BACKEND_TWISTED = 'twisted' 132 LOG_BACKEND_TWISTED = 'twisted'
104 LOG_BACKEND_BASIC = 'basic' 133 LOG_BACKEND_BASIC = 'basic'
105 LOG_BACKEND_CUSTOM = 'custom' 134 LOG_BACKEND_CUSTOM = 'custom'
124 LOG_LVL_ERROR = 'ERROR' 153 LOG_LVL_ERROR = 'ERROR'
125 LOG_LVL_CRITICAL = 'CRITICAL' 154 LOG_LVL_CRITICAL = 'CRITICAL'
126 LOG_LEVELS = (LOG_LVL_DEBUG, LOG_LVL_INFO, LOG_LVL_WARNING, LOG_LVL_ERROR, LOG_LVL_CRITICAL) 155 LOG_LEVELS = (LOG_LVL_DEBUG, LOG_LVL_INFO, LOG_LVL_WARNING, LOG_LVL_ERROR, LOG_LVL_CRITICAL)
127 156
128 157
129 # HARD-CODED ACTIONS IDS (generated with uuid.uuid4) 158 ## HARD-CODED ACTIONS IDS (generated with uuid.uuid4) ##
130 AUTHENTICATE_PROFILE_ID = u'b03bbfa8-a4ae-4734-a248-06ce6c7cf562' 159 AUTHENTICATE_PROFILE_ID = u'b03bbfa8-a4ae-4734-a248-06ce6c7cf562'
131 CHANGE_XMPP_PASSWD_ID = u'878b9387-de2b-413b-950f-e424a147bcd0' 160 CHANGE_XMPP_PASSWD_ID = u'878b9387-de2b-413b-950f-e424a147bcd0'
161
162
163 ## Text values ##
164 BOOL_TRUE = "true"
165 BOOL_FALSE = "false"
132 166
133 167
134 ## Misc ## 168 ## Misc ##
135 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" 169 SAVEFILE_DATABASE = APP_NAME_FILE + ".db"
136 IQ_SET = '/iq[@type="set"]' 170 IQ_SET = '/iq[@type="set"]'