SimpleList No Result optional warning msg
[myslice.git] / plugins / lists / slicelist.py
1 from plugins.lists.simplelist import SimpleList
2
3 # the SimpleList plugin requires 'key' and 'value' that are used 
4 # on the results of the query for rendering
5 class SliceList (SimpleList):
6     
7     def __init__ (self, **settings):
8         SimpleList.__init__(self, key='slice.slice_hrn', classname='slicelist', **settings)
9
10     # writing a js plugin for that would be overkill, just use SimpleList
11     def plugin_classname (self):
12         return 'SimpleList'
13
14     def requirements (self):
15         req = SimpleList.requirements(self)
16         req['css_files'] += [ 'css/slicelist.css' ]
17         return req