From a090b76afd3b2bda7bac9d098b3c1860a540b79f Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 26 May 2019 22:22:01 +0200 Subject: [PATCH] core (constants): added generic constants for "info", "warning" and "error" levels --- sat/core/constants.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sat/core/constants.py b/sat/core/constants.py index 1ac765f4..a65462e7 100644 --- a/sat/core/constants.py +++ b/sat/core/constants.py @@ -285,6 +285,12 @@ class Const(object): 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 @@ class Const(object): 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"