Merge branch 'master' of ssh://git.onelab.eu/git/myslice
[unfold.git] / plugins / slicestat / __init__.py
1 from unfold.plugin import Plugin
2
3 class SliceStat(Plugin):
4     
5     def __init__ (self, query, **settings):
6         Plugin.__init__ (self, **settings)
7         self.query=query
8     
9     def template_file (self):
10         return "slicestat.html"
11
12     def requirements (self):
13         reqs = {
14             'js_files' : [
15                 
16                 'js/slicestat.js',
17
18             ],
19             'css_files': [
20                 'css/slicestat.css',
21             ]
22         }
23         return reqs
24
25     def json_settings_list (self):
26         return ['plugin_uuid', 'domid', 'query_uuid', 'slicename', 'o']
27
28     def export_json_settings (self):
29         return True