1 from unfold.plugin import Plugin
3 class TestbedsPlugin(Plugin):
5 def __init__ (self, query=None, query_networks=None, **settings):
6 Plugin.__init__ (self, **settings)
8 # Until we have a proper way to access queries in Python
10 self.query_networks = query_networks
11 self.query_networks_uuid = query_networks.query_uuid if query_networks 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_networks_uuid']
33 def export_json_settings (self):