comparison frontends/src/jp/constants.py @ 2190:d823a0cdbcc2

jp (outputs): new xml and list_xml outputs, handling pretty formatting and syntax highlighting
author Goffi <goffi@goffi.org>
date Sun, 12 Mar 2017 23:34:19 +0100
parents 75667727c500
children 4f389486667d
comparison
equal deleted inserted replaced
2189:a25a256688e2 2190:d823a0cdbcc2
27 PLUGIN_OUTPUT = u"outputs" 27 PLUGIN_OUTPUT = u"outputs"
28 OUTPUT_TEXT = u'text' # blob of unicode text 28 OUTPUT_TEXT = u'text' # blob of unicode text
29 OUTPUT_DICT = u'dict' # simple key/value dictionary 29 OUTPUT_DICT = u'dict' # simple key/value dictionary
30 OUTPUT_LIST = u'list' 30 OUTPUT_LIST = u'list'
31 OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary) 31 OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary)
32 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX) 32 OUTPUT_XML = u'xml' # XML node (as unicode string)
33 OUTPUT_LIST_XML = u'list_xml' # list of XML nodes (as unicode strings)
34 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML)
33 35
34 # exit codes 36 # exit codes
35 EXIT_OK = 0 37 EXIT_OK = 0
36 EXIT_ERROR = 1 # generic error, when nothing else match 38 EXIT_ERROR = 1 # generic error, when nothing else match
37 EXIT_BAD_ARG = 2 # arguments given by user are bad 39 EXIT_BAD_ARG = 2 # arguments given by user are bad