webfront.py

changeset 62
f0a6bf48b05e
parent 61
15c95d3fcfd8
child 63
8949af6a4279
equal deleted inserted replaced
61:15c95d3fcfd8 62:f0a6bf48b05e
26 test_suite = load_tests() 26 test_suite = load_tests()
27 report = check_model(model, test_suite) 27 report = check_model(model, test_suite)
28 28
29 # Amend human-readable messages into the report 29 # Amend human-readable messages into the report
30 for problem in report['problems']: 30 for problem in report['problems']:
31 object = model.body[problem['body-index']] 31 object = model.body[problem.body_index]
32 problem['message'] = problem_text(problem, test_suite) 32 problem.message_str = problem_text(problem, test_suite)
33 problem['ldraw-code'] = object.textual_representation() 33 problem.ldraw_code = object.textual_representation()
34 else: 34 else:
35 report = None 35 report = None
36 filename = None 36 filename = None
37 return render_template('webfront.html', 37 return render_template('webfront.html',
38 report = report, 38 report = report,

mercurial