-from engine.plugin import Plugin
+from unfold.plugin import Plugin
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):
'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