1 from engine.plugin import Plugin
3 class SimpleList (Plugin) :
5 # only deal with our own stuff here and let Plugin handle the rest
6 def __init__ (self, key, value, with_datatables=False, **settings):
7 Plugin.__init__ (self, **settings)
10 self.with_datatables = with_datatables
12 # SimpleList is useless per se anyways
13 def template_file (self):
14 return "simplelist.html"
16 def template_env (self, request):
18 header=getattr(self,'header',None)
19 if header: env['header']=header
22 def requirements (self):
23 reqs = { 'js_files' : [ "js/simplelist.js", "js/plugin.js", "js/query.js", "js/onavail.js",
24 "js/manifold-pubsub.js", "js/manifold-async.js", "spin/spin.all.js",
26 'css_files': [ "css/simplelist.css" ],
28 if self.with_datatables:
29 reqs['js_files'].append ("datatables/js/dataTables.js")
30 reqs['js_files'].append ("js/with-datatables.js")
33 def json_settings_list (self): return ['plugin_uuid', 'query','query_uuid','key','value']