rewrite simplelist to use a table (thus datatable-ready) instead of <ul> -- ctd
[unfold.git] / plugins / simplelist.py
index 371e5d6..d3ec876 100644 (file)
@@ -10,7 +10,14 @@ class SimpleList (Plugin) :
         self.with_datatables = with_datatables
 
     # SimpleList is useless per se anyways
-    def template_file (self): return "simplelist.html"
+    def template_file (self): 
+        return "simplelist.html"
+    
+    def template_env (self, request):
+        env={}
+        header=getattr(self,'header',None)
+        if header: env['header']=header
+        return env
 
     def requirements (self):
         reqs = { 'js_files' : [ "js/simplelist.js", "js/plugin.js", "js/query.js", "js/onavail.js",