1 from unfold.plugin import Plugin
3 class UnivbrisFv (Plugin):
5 ////////////////////////////////////////
6 modified querytable for univbris foam
7 ///////////////////////////////////////"""
9 def __init__ (self, init_key=None,datatables_options={}, **settings):
10 Plugin.__init__ (self, **settings)
11 self.columns = list (['switch dpid','port no<->peer dpid/port no.','selected'])
12 self.init_key=init_key
13 self.datatables_options=datatables_options
15 def template_file (self):
16 return "univbrisfv.html"
18 def template_env (self, request):
20 env.update(self.__dict__)
21 env['columns']=self.columns
24 def requirements (self):
26 'js_files' : [ "js/spin-presets.js", "js/spin.min.js", "js/jquery.spin.js",
27 "js/dataTables.js", "js/dataTables.bootstrap.js", "js/with-datatables.js",
28 "js/manifold.js", "js/manifold-query.js",
29 "js/unfold-helper.js",
32 'css_files': [ "css/dataTables.bootstrap.css",
33 "css/dataTables.full_numbers.css",
34 "css/univbrisfv.css" ,
38 # the list of things passed to the js plugin
39 def json_settings_list (self):
40 return ['plugin_uuid', 'domid', 'datatables_options', 'init_key',]