--- /dev/null
+from unfold.plugin import Plugin
+
+class UnivbrisTopo(Plugin):
+
+ def __init__ (self, query=None, **settings):
+ Plugin.__init__ (self, **settings)
+ self.query=query
+ self.query_uuid = query.query_uuid if query else None
+ print "called univbris topo plugin"
+
+ def template_file (self):
+ try:
+ return "univbris_topology.html"
+ except:
+ print "error template"
+
+ def requirements (self):
+ reqs = {
+ 'js_files' : [ "js/spin-presets.js", "js/spin.min.js", "js/jquery.spin.js",
+ "js/manifold.js", "js/manifold-query.js",
+ "js/unfold-helper.js",
+ 'js/univbristopo.js', 'js/d3.v2.min.js','js/tooltip.topology.js',
+ ],
+ 'css_files': [
+ 'css/univbris.css','css/tooltip.topology.css','css/tooltip.css','css/slice.topology.css',
+ ]
+ }
+ return reqs
+
+ def json_settings_list (self):
+ # query_uuid will pass self.query results to the javascript
+ # and will be available as "record" in :
+ # on_new_record: function(record)
+ return ['plugin_uuid', 'domid', 'query_uuid','init_key',]
+
+ def export_json_settings (self):
+ return True