summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authormaheshgudi2017-02-03 23:42:30 +0530
committermaheshgudi2017-03-02 20:38:41 +0530
commit321343d45bc1f4d20cd348773bd8b214d9c4d692 (patch)
treebae4022c3090cc78f4d421f4aa5afa40fd7beebd /yaksh/forms.py
parentddf3e13669f7232acf6019a0f2f33f397a6e6d51 (diff)
downloadonline_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.tar.gz
online_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.tar.bz2
online_test-321343d45bc1f4d20cd348773bd8b214d9c4d692.zip
added float based questions
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index df590de..fdc881f 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -36,6 +36,8 @@ question_types = (
("code", "Code"),
("upload", "Assignment Upload"),
("integer", "Answer in Integer"),
+ ("string", "Answer in String"),
+ ("float", "Answer in Decimal"),
)
test_case_types = (
@@ -44,6 +46,8 @@ test_case_types = (
("mcqtestcase", "MCQ Testcase"),
("hooktestcase", "Hook Testcase"),
("integertestcase", "Integer Testcase"),
+ ("stringtestcase", "String Testcase"),
+ ("floattestcase", "Float Testcase"),
)
UNAME_CHARS = letters + "._" + digits