diff frontends/src/jp/constants.py @ 2163:75667727c500

jp (output): template output first draft: template output use the new template renderer and data_objects module in backend tools. Options can be specified: template to give a direct path to template, browser to display result directly, inline-css to include css in the HTML page. Default template can be specified in command's TEMPLATE attribute, and a template_data_mapping method is called if it exists to map data to what is expected by the template.
author Goffi <goffi@goffi.org>
date Tue, 21 Feb 2017 21:01:40 +0100
parents 8f96c242fa89
children d823a0cdbcc2
line wrap: on
line diff
--- a/frontends/src/jp/constants.py	Tue Feb 21 21:01:40 2017 +0100
+++ b/frontends/src/jp/constants.py	Tue Feb 21 21:01:40 2017 +0100
@@ -22,13 +22,13 @@
 
 class Const(constants.Const):
 
-    APP_NAME = "jp"
-    PLUGIN_CMD = "commands"
-    PLUGIN_OUTPUT = "outputs"
-    OUTPUT_TEXT = 'text' # blob of unicode text
-    OUTPUT_DICT = 'dict' # simple key/value dictionary
-    OUTPUT_LIST = 'list'
-    OUTPUT_COMPLEX = 'complex' # complex data (e.g. multi-level dictionary)
+    APP_NAME = u"jp"
+    PLUGIN_CMD = u"commands"
+    PLUGIN_OUTPUT = u"outputs"
+    OUTPUT_TEXT = u'text' # blob of unicode text
+    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)
 
     # exit codes