tear down the start_with_spin/need_spin/need-spin thingy
[myslice.git] / plugins / querycode / __init__.py
1 from unfold.plugin import Plugin
2
3 class QueryCode (Plugin):
4
5     def __init__ (self, query, **settings):
6         Plugin.__init__ (self, **settings)
7         self.query=query
8
9     def template_file (self):
10         return "querycode.html"
11
12     def requirements (self):
13         return { 
14             'js_files' : [ 
15                 "js/querycode.js", 
16                 "js/manifold.js", "js/manifold-query.js",
17                 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js", 
18                 "js/shAutoloader.js","js/shCore.js","js/shBrushPython.js","js/shBrushRuby.js",
19                 ] ,
20 # thierry: see this file for details of why we turn this off for now            
21             'css_files': [
22                 "css/querycode.css" ,
23                 "css/shCore.css","css/shCoreDefault.css","css/shThemeDefault.css",
24                 ],
25             }
26
27     def json_settings_list (self): return ['plugin_uuid','query_uuid']