X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fupdater%2Fupdater.py;h=2f68b410222b1742ddf6a06f263679e4d592afa1;hb=69867d5296684463d3aad4f6db867d24005102aa;hp=506416bdf43ff0254c526a8b79ea692d76c3b5ea;hpb=c8ac1863026e5736065065e931e20de310cb3b06;p=myslice.git diff --git a/plugins/updater/updater.py b/plugins/updater/updater.py index 506416bd..2f68b410 100644 --- a/plugins/updater/updater.py +++ b/plugins/updater/updater.py @@ -4,8 +4,8 @@ class Updater (Plugin): def __init__ (self, query, label="Update", **settings): Plugin.__init__ (self, **settings) - # xxx would make sense to check this is a Get query... self.query=query + if query.action != "get": print "Updater on non-get query: ",query.action self.label=label def template_file (self): @@ -13,14 +13,17 @@ class Updater (Plugin): def requirements (self): return { - 'js_files' : [ "js/updater.js" , "js/manifold.js", "js/manifold-query.js", ], + 'js_files' : [ "js/updater.js" , "js/manifold.js", "js/manifold-query.js", + "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js", + "js/Math.uuid.js", + ], 'css_files' : "css/updater.css", } # although this has no query, we need a plugin instance to be created in the js output def export_json_settings (self): return True # the js plugin expects a domid - def json_settings_list (self): return [ 'plugin_uuid', 'query_uuid' ] + def json_settings_list (self): return [ 'plugin_uuid', 'query_uuid', ] # and we don't need a spin wheel def start_with_spin (self): return False