summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-29Answer saved again after correctly submitted, fixed.prathamesh
Removed javascript that makes user wait for 2 seconds when the code question is correct. All the other html elements are accessible by user during the wait. This also caused the duplicate save during the wait, as they can skip at that point and the answer is saved again. Added a check that if question is already answered then do not save it. This also resolves the monitor(use data) page problem of showing marks obtained zero even when it is correct. Removed skipped answers from the monitor page.
2016-08-29Views sometimes use cent percent CPU, fixedprathamesh
After correct submission(POST) of code question, same question is shown for 2 seconds with a message "Correct Output". After 2 seconds, the same correctly answered question is resubmitted(GET) to the server.Since the question is already answered, it skips the question using the skip method of answerpaper. In skip method we have used cycle itertool, which loops in a cyclic manner, never ending. So it is terminated when we get a question match in an unanswered questions list with the submitted question. But the question is already answered so we never get a match and loop runs infinitely. So used list instead of cycle. Also, after correct answer, the user is to always get first question in the answered list of question instead of next question after the answered one. So changed the completed_question method of answerpaper.
2016-08-16Merge pull request #124 from FOSSEE/test-code-serverankitjavalkar
Improve server pool
2016-08-12Set correct verbosity level for test.Prabhu Ramachandran
2016-08-12No need to run nosetests again.Prabhu Ramachandran
2016-08-12Move tests.py to test_models.py.Prabhu Ramachandran
2016-08-12Merge branch 'master' into test-code-serverPrabhu Ramachandran
2016-08-12Merge pull request #123 from prathamesh920/request_delay_issue_resolvedPrabhu Ramachandran
Removed for loop from the question template.
2016-08-12Use a tornado based server for the pool server.Prabhu Ramachandran
With the previous XMLRPC based server, an XMLRPC server would respond to a request for an available port. This does not work as the server can only take about 2 simultaneous connections. The server pool now uses a HTTP server via tornado which works extremely well. The django code should not change at all as this is an internal change. This change should make the code server far more robust and work for a very large number of simultaneous users. The http server also has a simple status page to indicate the current load. This will not be correct on OSX due to limitations of the multi-processing Queue implementation on OSX.
2016-08-12Add test case for code server.Prabhu Ramachandran
This currently fails when multiple threads ask for a code evaluation at the same time.
2016-08-12Removed --use-mirrors option from pip install in travisprathamesh
2016-08-12Removed for loop from the question template.prathamesh
Once the code question is correct, user must see the message Correct Output for two seconds and then url redirection. But since this was written in a for loop, so multiple requests almost simultaneously were sent by a single user. This caused the server to go down. For now removed for loop.
2016-07-28Merge pull request #113 from adityacp/file_based_questionsKing
File based questions
2016-07-28changes in templates to get question file url and nameadityacp
2016-07-28changes in views questions file uploadadityacp
2016-07-28changes in file upload classadityacp
2016-07-28added validation to check zip fileadityacp
2016-07-28removed extra initialization from settings.pyadityacp
2016-07-28removed unused import and changed indentationadityacp
2016-07-28rebase changesadityacp
2016-07-28deleted copy_delete_files.pyadityacp
2016-07-28changed module name from copy_delete_files to file_utilsadityacp
2016-07-28changed extract and delete function names in views.pyadityacp
2016-07-28removed delete function from models.pyadityacp
2016-07-28changed file module name in evaluatorsadityacp
2016-07-28added new text file for test cases to test file based questionsadityacp
2016-07-28created file copier to copy filesadityacp
2016-07-28students can download filesadityacp
2016-07-28added form to upload filesadityacp
2016-07-28added test cases for file based questionsadityacp
2016-07-28added parameter in safe_evaluate to take file paths listadityacp
2016-07-28changed evaluators to support file based questionsadityacp
2016-07-28added urls and files pathadityacp
2016-07-28added files upload for questionsadityacp
2016-07-28java file based scriptadityacp
2016-07-28cpp file based scriptadityacp
2016-07-28bash file based scriptadityacp
2016-07-27Merge pull request #118 from ankitjavalkar/fix-codemirror-syntaxPrabhu Ramachandran
Minor changes in codemirror and setup.py
2016-07-25- Fix syntax highlighting for c, java, shell and scilabankitjavalkar
- Add social-auth to setup.py
2016-07-15Merge pull request #116 from maheshgudi/documentationKing
Documentation
2016-07-15mentioned read the docs and added readthedocs badge in readmemaheshgudi
2016-07-15mentioned read the docs and added readthedocs badge in readmemaheshgudi
2016-07-15made minor changes in docsmaheshgudi
2016-07-15made changes in conf.pymaheshgudi
2016-07-14added more documentation.maheshgudi
2016-07-13first draft of the Yaksh read the docs documentation.maheshgudi
2016-07-12Merge pull request #115 from maheshgudi/masterPrabhu Ramachandran
minor changes in timezone and change password templates
2016-07-11changed templates for forgot password and change passwordmaheshgudi
2016-07-11made minor changes in creating test quizmaheshgudi
2016-07-11corrected minor changemaheshgudi