renamed verticallayout into stack
[unfold.git] / plugins / lists / staticlist.py
index b9c644b..c5a254a 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class StaticList (Plugin) :
 
@@ -14,9 +14,11 @@ class StaticList (Plugin) :
     
     def template_env (self, request):
         env={}
+        # would need some cleaner means to set a header here
         header=getattr(self,'header',None)
         if header: env['header']=header
         env['list']=self.list
+        env['with_datatables']= "yes" if self.with_datatables else ""
         return env
 
     def requirements (self):
@@ -24,6 +26,6 @@ class StaticList (Plugin) :
                  'css_files': [ "css/staticlist.css" ],
                  }
         if self.with_datatables:
-            reqs['js_files'].append ("datatables/js/dataTables.js")
+            reqs['js_files'].append ("js/dataTables.js")
             reqs['js_files'].append ("js/with-datatables.js")
         return reqs