1 from __future__ import print_function
3 from unfold.plugin import Plugin
5 class Univbris(Plugin):
7 def __init__ (self, query=None, **settings):
8 Plugin.__init__ (self, **settings)
10 self.query_uuid = query.query_uuid if query else None
11 print("called univbris plugin")
13 def template_file (self):
15 return "univbris_welcome.html"
17 print("error template")
19 def requirements (self):
21 'js_files' : [ "js/spin-presets.js", "js/spin.min.js", "js/jquery.spin.js",
22 "js/manifold.js", "js/manifold-query.js",
23 "js/unfold-helper.js",
32 def json_settings_list (self):
33 # query_uuid will pass self.query results to the javascript
34 # and will be available as "record" in :
35 # on_new_record: function(record)
36 return ['plugin_uuid', 'domid', 'query_uuid', 'init_key', ]
38 def export_json_settings (self):