1 from engine.plugin import Plugin
3 class QueryCode (Plugin):
5 def __init__ (self, query, **settings):
6 Plugin.__init__ (self, **settings)
8 # our javascript requires the details of the manifold server
9 self.page.expose_js_manifold_config()
11 def template_file (self):
12 return "querycode.html"
14 def requirements (self):
16 'js_files' : [ "js/querycode.js", "js/plugin.js", "js/query.js", "js/onavail.js",
17 "js/manifold-pubsub.js", "js/manifold-async.js",
18 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
20 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shCore.js');
21 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushPython.js');
22 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushRuby.js');
23 # Plugins::add_js('/QueryCode/beautyofcode/scripts/shAutoloader.js');
25 'css_files': [ "css/querycode.css" ,
26 # Plugins::add_css('/QueryCode/beautyofcode/styles/shCore.css');
27 # Plugins::add_css('/QueryCode/beautyofcode/styles/shCoreDefault.css');
28 # Plugins::add_css('/QueryCode/beautyofcode/styles/shThemeDefault.css');
32 def json_settings_list (self): return ['plugin_uuid', 'query','query_uuid']
34 def start_with_spin (self): return False