Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
    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,
        }