|
a/OSSEval/analysis/views.py |
|
b/OSSEval/analysis/views.py |
|
... |
|
... |
54 |
exec("from " + entity.actual_entity_app + ".views import search_html_form, instance_list_html")
|
54 |
exec("from " + entity.actual_entity_app + ".views import search_html_form, instance_list_html")
|
55 |
#"Content-Type: text/html; charset=utf-8" has to be removed as these methods return just a partial
|
55 |
#"Content-Type: text/html; charset=utf-8" has to be removed as these methods return just a partial
|
56 |
analysis_detail = str(instance_list_html(request, analysis_id))[len("Content-Type: text/html; charset=utf-8"):]
|
56 |
analysis_detail = str(instance_list_html(request, analysis_id))[len("Content-Type: text/html; charset=utf-8"):]
|
57 |
|
57 |
|
58 |
return render(request, 'analysis/analysis_questions.html', {'analysis': analysis, 'analysis_detail': analysis_detail, 'methodology_version': analysis.methodology_version})
|
58 |
return render(request, 'analysis/analysis_questions.html', {'analysis': analysis, 'analysis_detail': analysis_detail, 'methodology_version': analysis.methodology_version})
|
|
|
59 |
|
|
|
60 |
def analysis_report(request, analysis_id):
|
|
|
61 |
analysis = get_object_or_404(Analysis, pk=analysis_id)
|
|
|
62 |
|
|
|
63 |
return render(request, 'analysis/analysis_report.html', {'analysis': analysis})
|
59 |
|
64 |
|
60 |
def save_answer(request):
|
65 |
def save_answer(request):
|
61 |
try:
|
66 |
try:
|
62 |
question_id = request.POST.get("question_id", "")
|
67 |
question_id = request.POST.get("question_id", "")
|
63 |
id_selected_instance = request.POST.get("id_selected_instance", "")
|
68 |
id_selected_instance = request.POST.get("id_selected_instance", "")
|