1 from unfold.plugin import Plugin
3 class SensLabMap (Plugin):
5 # set checkboxes if a final column with checkboxes is desired
6 # pass columns as the initial set of columns
7 # if None then this is taken from the query's fields
8 def __init__ (self, query, query_all, **settings):
9 Plugin.__init__ (self, **settings)
11 self.query_all = query_all
12 self.query_all_uuid = query_all.query_uuid
14 def template_file (self):
15 return "senslabmap.html"
17 def template_env (self, request):
21 def requirements (self):
23 'js_files' : [ "js/senslabmap.js",
24 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
25 "js/three.js", "js/grenoble.js", "js/viewer3D.js",
27 'css_files': [ "css/senslabmap.css" ,
32 # the list of things passed to the js plugin
33 def json_settings_list (self): return ['plugin_uuid', 'dom_id', 'query_uuid', 'query_all_uuid']