1 from unfold.plugin import Plugin
3 class MyPlugin(Plugin):
5 def __init__ (self, query=None, **settings):
6 Plugin.__init__ (self, **settings)
9 def template_file (self):
10 return "myplugin.html"
12 def requirements (self):
23 def json_settings_list (self):
24 # query_uuid will pass self.query results to the javascript
25 # and will be available as "record" in :
26 # on_new_record: function(record)
27 return ['plugin_uuid', 'domid', 'query_uuid']
29 def export_json_settings (self):