X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerycode%2F__init__.py;h=55da3e9c986601aac4f162e51a0b5ee5bbe187ee;hb=c86f4d109aa25eddb364f190ae0324a95f7eac90;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=18e2193c02477ab0b948f0748848e8bf190b6e7e;p=unfold.git diff --git a/plugins/querycode/__init__.py b/plugins/querycode/__init__.py index e69de29b..55da3e9c 100644 --- a/plugins/querycode/__init__.py +++ b/plugins/querycode/__init__.py @@ -0,0 +1,30 @@ +from unfold.plugin import Plugin + +class QueryCode (Plugin): + + def __init__ (self, query, **settings): + Plugin.__init__ (self, **settings) + self.query=query + + def template_file (self): + return "querycode.html" + + def requirements (self): + return { + 'js_files' : [ + "js/querycode.js", + "js/manifold.js", "js/manifold-query.js", + "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js", + "js/shAutoloader.js","js/shCore.js","js/shBrushPython.js","js/shBrushRuby.js", + ] , +# thierry: see this file for details of why we turn this off for now + 'css_files': [ + "css/querycode.css" , + "css/shCore.css","css/shCoreDefault.css","css/shThemeDefault.css", + ], + } + + def json_settings_list (self): return ['plugin_uuid','query_uuid'] + + # because we have a link to a query it looks like we need a spin, let's make this right + def start_with_spin (self): return False