def __init__(self, report, file_info): super(FilePage, self).__init__(report) self.context['active_section'] = 'files' filename, body = report.db.get_cached_file_by_id( report.run_id, file_info.signature, ) self.context['styled_body'] = syntax.apply_style(filename, body)
def __init__(self, report, file_info): super(FilePage, self).__init__(report) self.context['active_section'] = 'files' filename, body = report.db.get_cached_file_by_id( report.run_id, file_info.signature, ) self.context['styled_body'] = syntax.apply_style(filename, body)
def get_one(self, run_id, file_id): filename, body = request.db.get_cached_file_by_id(run_id, file_id) styled_body = syntax.apply_style(filename, body) context = run_context.get_context(request.db, run_id, None) context.update({ 'filename': filename, 'body': body, 'styled_body': styled_body, }) return context
def get_one(self, run_id, file_id): filename, body = request.db.get_cached_file_by_id(run_id, file_id) styled_body = syntax.apply_style(filename, body) context = run_context.get_context(request.db, run_id, None) context.update({ 'filename': filename, 'body': body, 'styled_body': styled_body, }) return context
def get_one(self, run_id, file_id): filename, body = request.db.get_cached_file_by_id(run_id, file_id) run = request.db.get_run(run_id) styled_body = syntax.apply_style(filename, body) return { 'run_id': run_id, 'run': run, 'filename': filename, 'body': body, 'styled_body': styled_body, }