def index(self): tmpl = lookup.get_template("index.html") total,used,free = sysinfo.diskUsage("/") top = sysinfo.top(20) title = sysinfo.hostInfo() print "title", title return tmpl.render(free=free,used=used,top=top,title=title)
def top(self, numlines=20, *args, **kw): return sysinfo.top(numlines);