Example #1
0
 def __init__(self, report):
     super(StatsPage, self).__init__(report)
     self.context['stats_data'] = stats.format_data(
         report.run_id,
         report.run_details.stats,
         report.db,
     )
Example #2
0
 def __init__(self, report):
     super(StatsPage, self).__init__(report)
     self.context['stats_data'] = stats.format_data(
         report.run_id,
         report.run_details.stats,
         report.db,
     )
Example #3
0
 def index(self, run_id):
     context = run_context.get_context(request.db, run_id, None)
     run = context['run']
     context.update({
         'stats_data': stats.format_data(run_id, run.stats, request.db),
         'getfileid': functools.partial(request.db.get_file_signature,
                                        run_id=run_id),
     })
     return context
Example #4
0
 def index(self, run_id):
     run = request.db.get_run(run_id)
     return {
         'run_id': run_id,
         'run': run,
         'stats_data': stats.format_data(run_id, run.stats, request.db),
         'getfileid': functools.partial(request.db.get_file_signature,
                                        run_id=run_id),
     }
 def index(self, run_id):
     context = run_context.get_context(request.db, run_id, None)
     run = context['run']
     context.update({
         'stats_data':
         stats.format_data(run_id, run.stats, request.db),
         'getfileid':
         functools.partial(request.db.get_file_signature, run_id=run_id),
     })
     return context