forget about manage.py collectstatic and come up with our own brew
[myslice.git] / plugins / quickfilter / quickfilter.py
1 from engine.plugin import Plugin
2
3 class QuickFilter (Plugin) :
4
5     def __init__ (self, list=[], with_datatables=False, **settings):
6         Plugin.__init__ (self, **settings)
7         self.list=list
8         self.with_datatables = with_datatables
9         self.page.expose_js_metadata()
10
11     def title (self) : return "Title for Quick "
12
13     def template_file (self): return "quickfilter.html"
14
15     def requirements (self):
16         reqs = { 'js_files' : [ "js/quickfilter.js" ],
17                  'css_files': [ "css/quickfilter.css" ],
18                  }
19         return reqs
20
21     def exclude_from_json (self):
22         return ['list']
23