# HG changeset patch # User Goffi # Date 1558902121 -7200 # Node ID 767e1ef6e1bd25b92f6227b7048379b3989bb9bf # Parent bb36cf6289c644f4080d6c062e4b550ab399fffe core (constants): added generic constants for "info", "warning" and "error" levels diff -r bb36cf6289c6 -r 767e1ef6e1bd sat/core/constants.py --- a/sat/core/constants.py Sun May 26 22:22:00 2019 +0200 +++ b/sat/core/constants.py Sun May 26 22:22:01 2019 +0200 @@ -285,6 +285,12 @@ PS_ITEMS = "items" # Can contain publish and retract items PS_EVENTS = (PS_ITEMS, PS_DELETE) + ## MESSAGE/NOTIFICATION LEVELS ## + + LVL_INFO = "info" + LVL_WARNING = "warning" + LVL_ERROR = "error" + ## XMLUI ## XMLUI_WINDOW = "window" XMLUI_POPUP = "popup" @@ -300,9 +306,9 @@ XMLUI_DATA_TYPE = "type" XMLUI_DATA_MESS = "message" XMLUI_DATA_LVL = "level" - XMLUI_DATA_LVL_INFO = "info" - XMLUI_DATA_LVL_WARNING = "warning" - XMLUI_DATA_LVL_ERROR = "error" + XMLUI_DATA_LVL_INFO = LVL_INFO + XMLUI_DATA_LVL_WARNING = LVL_WARNING + XMLUI_DATA_LVL_ERROR = LVL_ERROR XMLUI_DATA_LVL_DEFAULT = XMLUI_DATA_LVL_INFO XMLUI_DATA_LVLS = (XMLUI_DATA_LVL_INFO, XMLUI_DATA_LVL_WARNING, XMLUI_DATA_LVL_ERROR) XMLUI_DATA_BTNS_SET = "buttons_set"