comparison frontends/src/jp/constants.py @ 2156:8f96c242fa89

jp (outputs): added OUTPUT_COMPLEX type for data which are more complex than key/value dictionaries
author Goffi <goffi@goffi.org>
date Thu, 16 Feb 2017 00:51:33 +0100
parents 877d0a2d0d86
children 75667727c500
comparison
equal deleted inserted replaced
2155:cee6561ad086 2156:8f96c242fa89
24 24
25 APP_NAME = "jp" 25 APP_NAME = "jp"
26 PLUGIN_CMD = "commands" 26 PLUGIN_CMD = "commands"
27 PLUGIN_OUTPUT = "outputs" 27 PLUGIN_OUTPUT = "outputs"
28 OUTPUT_TEXT = 'text' # blob of unicode text 28 OUTPUT_TEXT = 'text' # blob of unicode text
29 OUTPUT_DICT = 'dict' 29 OUTPUT_DICT = 'dict' # simple key/value dictionary
30 OUTPUT_LIST = 'list' 30 OUTPUT_LIST = 'list'
31 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST) 31 OUTPUT_COMPLEX = 'complex' # complex data (e.g. multi-level dictionary)
32 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX)
32 33
33 # exit codes 34 # exit codes
34 EXIT_OK = 0 35 EXIT_OK = 0
35 EXIT_ERROR = 1 # generic error, when nothing else match 36 EXIT_ERROR = 1 # generic error, when nothing else match
36 EXIT_BAD_ARG = 2 # arguments given by user are bad 37 EXIT_BAD_ARG = 2 # arguments given by user are bad