1 from unfold.plugin import Plugin
3 class TestbedsPlugin(Plugin):
5 def __init__ (self, query=None, query_all=None, query_network=None, **settings):
6 Plugin.__init__ (self, **settings)
8 # Until we have a proper way to access queries in Python
10 self.query_all = query_all
11 self.query_all_uuid = query_all.query_uuid if query_all else None
13 def template_file (self):
14 return "testbeds.html"
16 def requirements (self):
27 def json_settings_list (self):
28 # query_uuid will pass self.query results to the javascript
29 # and will be available as "record" in :
30 # on_new_record: function(record)
31 return ['plugin_uuid', 'domid', 'query_uuid', 'query_all_uuid']
33 def export_json_settings (self):