Mercurial > libervia-backend
changeset 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 | a096b8579a3c |
children | 018bdd687747 |
files | src/core/constants.py |
diffstat | 1 files changed, 35 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/constants.py Mon Aug 11 19:10:24 2014 +0200 +++ b/src/core/constants.py Mon Aug 11 19:10:24 2014 +0200 @@ -98,6 +98,35 @@ TEXT_CMDS = 'TEXT-COMMANDS' + ## XMLUI ## + XMLUI_WINDOW = 'window' + XMLUI_POPUP = 'popup' + XMLUI_FORM = 'form' + XMLUI_PARAM = 'param' + XMLUI_DIALOG = 'dialog' + XMLUI_DIALOG_CONFIRM = "confirm" + XMLUI_DIALOG_MESSAGE = "message" + XMLUI_DIALOG_NOTE = "note" + XMLUI_DIALOG_FILE = "file" + XMLUI_DATA_ANSWER = "answer" + XMLUI_DATA_CANCELLED = "cancelled" + XMLUI_DATA_TYPE = "type" + XMLUI_DATA_MESS = "message" + XMLUI_DATA_LVL = "level" + XMLUI_DATA_LVL_INFO = "info" + XMLUI_DATA_LVL_WARNING = "info" + XMLUI_DATA_LVL_ERROR = "info" + XMLUI_DATA_LVL_DEFAULT = XMLUI_DATA_LVL_INFO + XMLUI_DATA_BTNS_SET = "buttons_set" + XMLUI_DATA_BTNS_SET_OKCANCEL = "ok/cancel" + XMLUI_DATA_BTNS_SET_YESNO = "yes/no" + XMLUI_DATA_BTNS_SET_DEFAULT = XMLUI_DATA_BTNS_SET_OKCANCEL + XMLUI_DATA_FILETYPE = 'filetype' + XMLUI_DATA_FILETYPE_FILE = "file" + XMLUI_DATA_FILETYPE_DIR = "dir" + XMLUI_DATA_FILETYPE_DEFAULT = XMLUI_DATA_FILETYPE_FILE + + ## Logging ## LOG_BACKEND_STANDARD = 'standard' LOG_BACKEND_TWISTED = 'twisted' @@ -126,11 +155,16 @@ LOG_LEVELS = (LOG_LVL_DEBUG, LOG_LVL_INFO, LOG_LVL_WARNING, LOG_LVL_ERROR, LOG_LVL_CRITICAL) - # HARD-CODED ACTIONS IDS (generated with uuid.uuid4) + ## HARD-CODED ACTIONS IDS (generated with uuid.uuid4) ## AUTHENTICATE_PROFILE_ID = u'b03bbfa8-a4ae-4734-a248-06ce6c7cf562' CHANGE_XMPP_PASSWD_ID = u'878b9387-de2b-413b-950f-e424a147bcd0' + ## Text values ## + BOOL_TRUE = "true" + BOOL_FALSE = "false" + + ## Misc ## SAVEFILE_DATABASE = APP_NAME_FILE + ".db" IQ_SET = '/iq[@type="set"]'