fix prelude/requirements system
[unfold.git] / plugins / slicelist.py
1 from plugins.simplelist import SimpleList
2
3 class SliceList (SimpleList):
4     
5     def __init__ (self, list=[], **settings):
6         SimpleList.__init__(self, **settings)
7         self.list = [ "<a href='/slice/%s/' class='slicelist'>%s</a>"%(x,x) for x in list ]
8         self.add_to_settings ('list')
9
10     def title (self):
11         return "Slice list"
12
13 #    def requirements (self):
14 #        reqs=SimpleList.requirements(self)
15 #        reqs['js_files'].append('slice.js')
16 #        reqs['js_files'].append('slice2.js')
17 #        reqs['css_files'].append('slice.css')
18 #        reqs['css_files'].append('slice2.css')
19 #        reqs['js_chunks']=['js chunk1','js chunk2']
20 #        reqs['css_chunks']=['css chunk1','css chunk2']
21 #        return reqs