changeset 2295:31f586d6ab16

jp (constants): added OUTPUT_DICT_DICT for dictionaries of nested dictionaries
author Goffi <goffi@goffi.org>
date Sun, 02 Jul 2017 19:51:00 +0200
parents 78048f002a3c
children 1a64fd7b648d
files frontends/src/jp/constants.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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