X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerycode%2Fquerycode.py;h=55da3e9c986601aac4f162e51a0b5ee5bbe187ee;hb=69867d5296684463d3aad4f6db867d24005102aa;hp=6766444fd2f9d4208fbf6464e9ffeaaec7614eca;hpb=299e9c56ae549e87c974a0361d93cc1156c824ac;p=myslice.git diff --git a/plugins/querycode/querycode.py b/plugins/querycode/querycode.py index 6766444f..55da3e9c 100644 --- a/plugins/querycode/querycode.py +++ b/plugins/querycode/querycode.py @@ -1,35 +1,30 @@ -from engine.plugin import Plugin +from unfold.plugin import Plugin class QueryCode (Plugin): def __init__ (self, query, **settings): Plugin.__init__ (self, **settings) self.query=query - # our javascript requires the details of the manifold server - self.page.expose_js_manifold_config() def template_file (self): return "querycode.html" def requirements (self): return { - 'js_files' : [ "js/querycode.js", "js/plugin.js", "js/manifold-query.js", "js/onavail.js", - "js/manifold-pubsub.js", "js/manifold-async.js", - "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js", - -# Plugins::add_js('/QueryCode/beautyofcode/scripts/shCore.js'); -# Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushPython.js'); -# Plugins::add_js('/QueryCode/beautyofcode/scripts/shBrushRuby.js'); -# Plugins::add_js('/QueryCode/beautyofcode/scripts/shAutoloader.js'); - ] , - 'css_files': [ "css/querycode.css" , -# Plugins::add_css('/QueryCode/beautyofcode/styles/shCore.css'); -# Plugins::add_css('/QueryCode/beautyofcode/styles/shCoreDefault.css'); -# Plugins::add_css('/QueryCode/beautyofcode/styles/shThemeDefault.css'); - ], + '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','query_uuid'] + 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