X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Funivbristopo%2F__init__.py;h=6a9a47f94b399c926f4a09fb92ccc4539dc0d5fa;hb=4c626d6943e95d21f8008c9139438d87127ecf2f;hp=c9e92c98ad759aafcbab964240a0728845d67815;hpb=1fca38c650b5ec5b36e7fa7954143dc3961275ff;p=unfold.git diff --git a/plugins/univbristopo/__init__.py b/plugins/univbristopo/__init__.py index c9e92c98..6a9a47f9 100644 --- a/plugins/univbristopo/__init__.py +++ b/plugins/univbristopo/__init__.py @@ -1,24 +1,27 @@ from unfold.plugin import Plugin +from myslice.settings import logger + 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" + self.query_uuid = query.query_uuid if query else None + logger.info("called univbris topo plugin") def template_file (self): - try: - return "univbris_topology.html" - except: - print "error template" + try: + return "univbris_topology.html" + except Exception as e : + logger.error("error template {}".format(e)) 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_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': [