1 from unfold.plugin import Plugin
3 class MadDash (Plugin):
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 # latitude,longitude, zoom : the starting point
9 def __init__ (self, query = None, query_all = None, **settings):
10 Plugin.__init__ (self, **settings)
12 self.query_all = query_all
13 self.query_all_uuid = query_all.query_uuid if query_all else None
15 def template_file (self):
18 def template_env (self, request):
22 def requirements (self):
25 'http://d3js.org/d3.v3.min.js',
27 'js/buffer.js', 'js/maddash.js',
28 'js/manifold.js', 'js/manifold-query.js',
29 'js/spin-presets.js', 'js/spin.min.js', 'js/jquery.spin.js',
30 'js/unfold-helper.js',
39 # the list of things passed to the js plugin
40 def json_settings_list (self): return ['plugin_uuid','query_uuid', 'query_all_uuid']