1 from unfold.plugin import Plugin
3 class Updater (Plugin):
5 def __init__ (self, query, label="Update", **settings):
6 Plugin.__init__ (self, **settings)
8 if query.action != "get": print "Updater on non-get query: ",query.action
11 def template_file (self):
14 def requirements (self):
16 'js_files' : [ "js/updater.js" , "js/manifold.js", "js/manifold-query.js",
17 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
20 'css_files' : "css/updater.css",
23 # although this has no query, we need a plugin instance to be created in the js output
24 def export_json_settings (self): return True
25 # the js plugin expects a domid
26 def json_settings_list (self): return [ 'plugin_uuid', 'query_uuid', ]
28 # and we don't need a spin wheel
29 def start_with_spin (self): return False
31 def default_togglable (self): return False