comparison frontends/src/jp/constants.py @ 2233:bf998d8626d9

jp (output): added LIST_DICT output, to handle list of dictionaries
author Goffi <goffi@goffi.org>
date Thu, 27 Apr 2017 00:58:12 +0200
parents 4f389486667d
children a29d1351bc83
comparison
equal deleted inserted replaced
2232:4f389486667d 2233:bf998d8626d9
27 PLUGIN_CMD = u"commands" 27 PLUGIN_CMD = u"commands"
28 PLUGIN_OUTPUT = u"outputs" 28 PLUGIN_OUTPUT = u"outputs"
29 OUTPUT_TEXT = u'text' # blob of unicode text 29 OUTPUT_TEXT = u'text' # blob of unicode text
30 OUTPUT_DICT = u'dict' # simple key/value dictionary 30 OUTPUT_DICT = u'dict' # simple key/value dictionary
31 OUTPUT_LIST = u'list' 31 OUTPUT_LIST = u'list'
32 OUTPUT_LIST_DICT = u'list_dict' # list of dictionaries
32 OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary) 33 OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary)
33 OUTPUT_XML = u'xml' # XML node (as unicode string) 34 OUTPUT_XML = u'xml' # XML node (as unicode string)
34 OUTPUT_LIST_XML = u'list_xml' # list of XML nodes (as unicode strings) 35 OUTPUT_LIST_XML = u'list_xml' # list of XML nodes (as unicode strings)
35 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) 36 OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_LIST_DICT, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML)
36 37
37 # ANSI 38 # ANSI
38 A_HEADER = A.BOLD + A.FG_YELLOW 39 A_HEADER = A.BOLD + A.FG_YELLOW
39 A_SUBHEADER = A.BOLD + A.FG_RED 40 A_SUBHEADER = A.BOLD + A.FG_RED
40 41