verticallayout as an elementary building plugin
[unfold.git] / plugins / simplelist.py
index 19abe28..d08266b 100644 (file)
@@ -3,7 +3,12 @@ from django.template.loader import render_to_string
 from engine.plugin import Plugin
 
 class SimpleList (Plugin) :
-    
-    def render_content (self, request):
-        return render_to_string ("widget-simplelist.html",
-                                 self._settings)
+
+    def template (self):        return "simplelist.html"
+
+    def media_js ():            return [ 'js/simplelist.js' ]
+
+    def media_css ():           return { 'all': ('css/simplelist.css'), }
+
+    # SimpleList is useless per se anyways
+    def title (self) : return "Title for Simple List"