1 from unfold.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):
18 "js/manifold.js", "js/manifold-query.js",
19 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
20 "js/shAutoloader.js","js/shCore.js","js/shBrushPython.js","js/shBrushRuby.js",
22 # thierry: see this file for details of why we turn this off for now
25 "css/shCore.css","css/shCoreDefault.css","css/shThemeDefault.css",
29 def json_settings_list (self): return ['plugin_uuid','query_uuid']
31 # because we have a link to a query it looks like we need a spin, let's make this right
32 def start_with_spin (self): return False