Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/frontends/src/jp/constants.py Thu Apr 27 00:57:04 2017 +0200 +++ b/frontends/src/jp/constants.py Thu Apr 27 00:58:12 2017 +0200 @@ -29,10 +29,11 @@ OUTPUT_TEXT = u'text' # blob of unicode text OUTPUT_DICT = u'dict' # simple key/value dictionary OUTPUT_LIST = u'list' + OUTPUT_LIST_DICT = u'list_dict' # list of dictionaries OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary) OUTPUT_XML = u'xml' # XML node (as unicode string) OUTPUT_LIST_XML = u'list_xml' # list of XML nodes (as unicode strings) - OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) + OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_LIST_DICT, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) # ANSI A_HEADER = A.BOLD + A.FG_YELLOW