1 from engine.plugin import Plugin
3 class QueryCode (Plugin):
5 def __init__ (self, query, **settings):
6 Plugin.__init__ (self, **settings)
9 def template_file (self):
10 return "querycode.html"
12 def requirements (self):
14 'js_files' : [ "js/querycode.js", "js/plugin.js", "js/query.js", "js/onavail.js",
15 "js/manifold-pubsub.js", "js/manifold-async.js", "spin/spin.all.js",
16 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shCore.js');
17 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushPython.js');
18 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushRuby.js');
19 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shAutoloader.js');
21 'css_files': [ "css/querycode.css" ,
22 # Plugins::add_css('/QueryCode/beautyofcode/styles/shCore.css');
23 # Plugins::add_css('/QueryCode/beautyofcode/styles/shCoreDefault.css');
24 # Plugins::add_css('/QueryCode/beautyofcode/styles/shThemeDefault.css');
28 def json_settings_list (self): return ['plugin_uuid', 'query','query_uuid']