SliceList and TestbedList are specialized versions of SimpleList with related css
[unfold.git] / plugins / lists / testbedlist.py
diff --git a/plugins/lists/testbedlist.py b/plugins/lists/testbedlist.py
new file mode 100644 (file)
index 0000000..6496d90
--- /dev/null
@@ -0,0 +1,15 @@
+from plugins.lists.simplelist import SimpleList
+
+class TestbedList (SimpleList):
+    
+    def __init__ (self, **settings):
+        SimpleList.__init__(self, key='platform', classname='testbedlist', **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/testbedlist.css' ]
+        return req