1 from plugins.lists.simplelist import SimpleList
3 # the SimpleList plugin requires 'key' and 'value' that are used
4 # on the results of the query for rendering
5 class SliceList (SimpleList):
7 def __init__ (self, **settings):
8 SimpleList.__init__(self, key='slices.slice_hrn', classname='slicelist', **settings)
10 # writing a js plugin for that would be overkill, just use SimpleList
11 def plugin_classname (self):
14 def requirements (self):
15 req = SimpleList.requirements(self)
16 req['css_files'] += [ 'css/slicelist.css' ]