def progress(self, query, result): result.decoration = "naked" result.heading("Scanning inode %s" % (query["inode"])) scanners = self.calculate_scanners(query) dbh = DB.DBO() dbh.execute("select count(*) as jobs from jobs") jobs = dbh.fetch()["jobs"] result.para("%s jobs pending (all cases)" % jobs) result.para("The following scanners are used: %s" % scanners) pyflaglog.render_system_messages(result)
def progress(self,query,result): result.decoration='naked' result.heading("Scanning inode %s" % (query['inode'])) scanners = self.calculate_scanners(query) dbh = DB.DBO() dbh.execute("select count(*) as jobs from jobs") jobs = dbh.fetch()['jobs'] result.para("%s jobs pending (all cases)" % jobs) result.para("The following scanners are used: %s" % scanners) pyflaglog.render_system_messages(result)
def display(self, query, result): result.heading("PyFlag Statistics") dbh = DB.DBO() dbh.execute("select count(*) as count from jobs where state='pending'") row = dbh.fetch() result.row("Version", config.VERSION) result.row("Outstanding jobs", row['count']) cdbh = DB.DBO(query['case']) cdbh.execute("select count(*) as count from inode") row = cdbh.fetch() result.row("Total Inodes in VFS", row['count']) result.link("Changelog", url="images/changelog.html") result.end_table() pyflaglog.render_system_messages(result) def info_cb(query, result): result.heading("PyFlag Plugins") result.text(FlagFramework.print_info(), font='typewriter') result.toolbar(cb=info_cb, icon="question.png")
def display(self, query, result): result.heading("PyFlag Statistics") dbh = DB.DBO() dbh.execute("select count(*) as count from jobs where state='pending'") row = dbh.fetch() result.row("Version", config.VERSION) result.row("Outstanding jobs", row['count']) cdbh = DB.DBO(query['case']) cdbh.execute("select count(*) as count from inode") row = cdbh.fetch() result.row("Total Inodes in VFS", row['count']) result.link("Changelog", url="images/changelog.html") result.end_table() pyflaglog.render_system_messages(result) def info_cb(query,result): result.heading("PyFlag Plugins") result.text(FlagFramework.print_info(), font='typewriter') result.toolbar(cb=info_cb, icon="question.png")