73c767db568d986d313e09c0767e852a67d225db
[myslice.git] / plugins / senslabmap / senslabmap.py
1 from unfold.plugin import Plugin
2
3 class SensLabMap (Plugin):
4
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, **settings):
9         Plugin.__init__ (self, **settings)
10         self.query=query
11
12     def template_file (self):
13         return "senslabmap.html"
14
15     def template_env (self, request):
16         env={}
17         return env
18
19     def requirements (self):
20         reqs = {
21             'js_files' : [ "js/senslabmap.js",
22                            "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
23                            "js/three.js", "js/grenoble.js", "js/viewer3D.js",
24                            ] ,
25             'css_files': [ "css/senslabmap.css" , 
26                            ],
27             }
28         return reqs
29
30     # the list of things passed to the js plugin
31     def json_settings_list (self): return ['plugin_uuid','query_uuid']