Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/frontends/src/jp/constants.py Sun Mar 12 23:33:26 2017 +0100 +++ b/frontends/src/jp/constants.py Sun Mar 12 23:34:19 2017 +0100 @@ -29,7 +29,9 @@ OUTPUT_DICT = u'dict' # simple key/value dictionary OUTPUT_LIST = u'list' OUTPUT_COMPLEX = u'complex' # complex data (e.g. multi-level dictionary) - OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX) + 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) # exit codes EXIT_OK = 0