1 from unfold.plugin import Plugin
3 class UnivbrisTopo(Plugin):
5 def __init__ (self, query=None, **settings):
6 Plugin.__init__ (self, **settings)
8 self.query_uuid = query.query_uuid if query else None
9 print "called univbris topo plugin"
11 def template_file (self):
13 return "univbris_topology.html"
15 print "error template"
17 def requirements (self):
19 'js_files' : [ "js/spin-presets.js", "js/spin.min.js", "js/jquery.spin.js",
20 "js/manifold.js", "js/manifold-query.js",
21 "js/unfold-helper.js",
22 'js/univbristopo.js', 'js/d3.v2.min.js','js/tooltip.topology.js',
25 'css/univbris.css','css/tooltip.topology.css','css/tooltip.css','css/slice.topology.css',
30 def json_settings_list (self):
31 # query_uuid will pass self.query results to the javascript
32 # and will be available as "record" in :
33 # on_new_record: function(record)
34 return ['plugin_uuid', 'domid', 'query_uuid','init_key',]
36 def export_json_settings (self):