comparison sat/core/constants.py @ 2956:767e1ef6e1bd

core (constants): added generic constants for "info", "warning" and "error" levels
author Goffi <goffi@goffi.org>
date Sun, 26 May 2019 22:22:01 +0200
parents bb36cf6289c6
children 121c4a2a567c
comparison
equal deleted inserted replaced
2955:bb36cf6289c6 2956:767e1ef6e1bd
283 PS_DELETE = "delete" # used for nodes 283 PS_DELETE = "delete" # used for nodes
284 PS_ITEM = "item" 284 PS_ITEM = "item"
285 PS_ITEMS = "items" # Can contain publish and retract items 285 PS_ITEMS = "items" # Can contain publish and retract items
286 PS_EVENTS = (PS_ITEMS, PS_DELETE) 286 PS_EVENTS = (PS_ITEMS, PS_DELETE)
287 287
288 ## MESSAGE/NOTIFICATION LEVELS ##
289
290 LVL_INFO = "info"
291 LVL_WARNING = "warning"
292 LVL_ERROR = "error"
293
288 ## XMLUI ## 294 ## XMLUI ##
289 XMLUI_WINDOW = "window" 295 XMLUI_WINDOW = "window"
290 XMLUI_POPUP = "popup" 296 XMLUI_POPUP = "popup"
291 XMLUI_FORM = "form" 297 XMLUI_FORM = "form"
292 XMLUI_PARAM = "param" 298 XMLUI_PARAM = "param"
298 XMLUI_DATA_ANSWER = "answer" 304 XMLUI_DATA_ANSWER = "answer"
299 XMLUI_DATA_CANCELLED = "cancelled" 305 XMLUI_DATA_CANCELLED = "cancelled"
300 XMLUI_DATA_TYPE = "type" 306 XMLUI_DATA_TYPE = "type"
301 XMLUI_DATA_MESS = "message" 307 XMLUI_DATA_MESS = "message"
302 XMLUI_DATA_LVL = "level" 308 XMLUI_DATA_LVL = "level"
303 XMLUI_DATA_LVL_INFO = "info" 309 XMLUI_DATA_LVL_INFO = LVL_INFO
304 XMLUI_DATA_LVL_WARNING = "warning" 310 XMLUI_DATA_LVL_WARNING = LVL_WARNING
305 XMLUI_DATA_LVL_ERROR = "error" 311 XMLUI_DATA_LVL_ERROR = LVL_ERROR
306 XMLUI_DATA_LVL_DEFAULT = XMLUI_DATA_LVL_INFO 312 XMLUI_DATA_LVL_DEFAULT = XMLUI_DATA_LVL_INFO
307 XMLUI_DATA_LVLS = (XMLUI_DATA_LVL_INFO, XMLUI_DATA_LVL_WARNING, XMLUI_DATA_LVL_ERROR) 313 XMLUI_DATA_LVLS = (XMLUI_DATA_LVL_INFO, XMLUI_DATA_LVL_WARNING, XMLUI_DATA_LVL_ERROR)
308 XMLUI_DATA_BTNS_SET = "buttons_set" 314 XMLUI_DATA_BTNS_SET = "buttons_set"
309 XMLUI_DATA_BTNS_SET_OKCANCEL = "ok/cancel" 315 XMLUI_DATA_BTNS_SET_OKCANCEL = "ok/cancel"
310 XMLUI_DATA_BTNS_SET_YESNO = "yes/no" 316 XMLUI_DATA_BTNS_SET_YESNO = "yes/no"