SliceList and TestbedList are specialized versions of SimpleList with related css
[myslice.git] / plugins / lists / slicelist.py
index b9220db..adfb9bf 100644 (file)
@@ -5,8 +5,13 @@ from plugins.lists.simplelist import SimpleList
 class SliceList (SimpleList):
     
     def __init__ (self, **settings):
-        SimpleList.__init__(self, key='slice_hrn', **settings)
+        SimpleList.__init__(self, key='slice.slice_hrn', classname='slicelist', **settings)
 
     # writing a js plugin for that would be overkill, just use SimpleList
     def plugin_classname (self):
         return 'SimpleList'
+
+    def requirements (self):
+        req = SimpleList.requirements(self)
+        req['css_files'] += [ 'css/slicelist.css' ]
+        return req