# HG changeset patch # User Goffi # Date 1499017860 -7200 # Node ID 31f586d6ab1636f1a4d27a9eb8de689f73790b9e # Parent 78048f002a3cbbf8868021809a09ed746b4b4797 jp (constants): added OUTPUT_DICT_DICT for dictionaries of nested dictionaries diff -r 78048f002a3c -r 31f586d6ab16 frontends/src/jp/constants.py --- a/frontends/src/jp/constants.py Sun Jul 02 19:47:25 2017 +0200 +++ b/frontends/src/jp/constants.py Sun Jul 02 19:51:00 2017 +0200 @@ -30,10 +30,11 @@ OUTPUT_DICT = u'dict' # simple key/value dictionary OUTPUT_LIST = u'list' OUTPUT_LIST_DICT = u'list_dict' # list of dictionaries + OUTPUT_DICT_DICT = u'dict_dict' # dict of nested 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_LIST_DICT, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) + OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_LIST_DICT, OUTPUT_DICT_DICT, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) # ANSI A_HEADER = A.BOLD + A.FG_YELLOW