From d8847656ba79e51c96c6e3650374aaf616c375dc Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 30 Apr 2015 11:21:49 +0530 Subject: Code Review: Code Refactoring --- testapp/exam/settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testapp/exam/settings.py') diff --git a/testapp/exam/settings.py b/testapp/exam/settings.py index 682516f..497a620 100644 --- a/testapp/exam/settings.py +++ b/testapp/exam/settings.py @@ -18,3 +18,11 @@ SERVER_TIMEOUT = 2 # reason set this to the root you have to serve at. In the above example # host.org/foo/exam set URL_ROOT='/foo' URL_ROOT = '' + +language_register = {"python": "python_code_evaluator", + "c": "c_cpp_code_evaluator", + "cpp": "c_cpp_code_evaluator", + "java": "java_evaluator", + "bash": "bash_evaluator", + "scilab": "scilab_evaluator", + } -- cgit From 3e29dc7f6df7019562b179872b43cb13c7483738 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 30 Apr 2015 12:41:17 +0530 Subject: - Seperate testcases, Modify views, models, templates for compatibility - Change functions names in code_evaluator --- testapp/exam/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testapp/exam/settings.py') diff --git a/testapp/exam/settings.py b/testapp/exam/settings.py index 497a620..93f90a9 100644 --- a/testapp/exam/settings.py +++ b/testapp/exam/settings.py @@ -19,10 +19,10 @@ SERVER_TIMEOUT = 2 # host.org/foo/exam set URL_ROOT='/foo' URL_ROOT = '' -language_register = {"python": "python_code_evaluator", - "c": "c_cpp_code_evaluator", - "cpp": "c_cpp_code_evaluator", - "java": "java_evaluator", - "bash": "bash_evaluator", - "scilab": "scilab_evaluator", +code_evaluators = {"python": "python_code_evaluator.PythonCodeEvaluator", + "c": "c_cpp_code_evaluator.CCPPCodeEvaluator", + "cpp": "c_cpp_code_evaluator.CCPPCodeEvaluator", + "java": "java_evaluator.JavaCodeEvaluator", + "bash": "bash_evaluator.BashCodeEvaluator", + "scilab": "scilab_evaluator.ScilabCodeEvaluator", } -- cgit