summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-20ENH: Python server can now run multiple serversPrabhu Ramachandran
- the SERVER_PORTS is now a list of ports and when you run python_server.py it will run as many servers as desired. - python_server.py now will create multiple servers via multiprocessing. - the xmlrpc_clients.py is changed to deal with these multiple servers. This allows us to handle many incoming requests. These changes allow us to run the online test for many users. We had over 400 simultaneous users and a total of about 650 users using the app with these modifications.
2011-11-19BUG: Misc. bug fixes.Prabhu Ramachandran
- Timeout for signal.alarm is an integer. - The total_seconds method on timedelta is new to 2.7 and doesn't work on older versions.
2011-11-19Changed load_questions to load_examPrabhu Ramachandran
Added option to define quizzes in the file we load from. Also fixed bug in import for the xmlrpc_clients.py and changed the verbose name for Quiz objects.
2011-11-19Configure server port and timeout in settings.pyPrabhu Ramachandran
Also updated documentation.
2011-11-19Setting timeout to 2 and refactoring a littlePrabhu Ramachandran
Setting default timeout to 2 seconds. Also made the run_as_nobody a function so the rest of the server can be tested without the need to sudo it.
2011-11-19ENH: Fixing login/registration forms and uname/pwdPrabhu Ramachandran
The login and registration forms are now rendered as tables which looks much nicer. The username now can take letters, digits, period and underscore. The password can take letters, digits and punctuation.
2011-11-19Adding load_questions to load from Python code.Prabhu Ramachandran
This lets us load questions using Python syntax which is rather convenient.
2011-11-19Moving load_questions to load_questions_xmlPrabhu Ramachandran
Changing the command ./manage.py load_questions to load_questions_xml.
2011-11-18BUG: Submit code when time is donePrabhu Ramachandran
Also check if user is authenticated or not when displaying question or checking.
2011-11-17ENH/BUG: Showing number of marks and fixing bug.Prabhu Ramachandran
The check view was not showing the quiz description.
2011-11-17BUG/ENH: Cleaning up page templates and fixing bugPrabhu Ramachandran
If you complete the quiz it was going into a redirect loop, this is fixed. Also cleaned up all the page templates with proper block contents.
2011-11-17ENH: Added a Quiz model and time based papersPrabhu Ramachandran
Added a model called Quiz which allows the admin to define a quiz on a date which can be active or deactivated. Users can take a quiz if one is active and are given a fixed duration to complete the quiz. They may login as many times as needed to finish it but the total time is logged. Javascript code updates a timer on the page.
2011-11-17ENH: Changing Quiz to QuestionPaper.Prabhu Ramachandran
This changes the models. The Quiz should really be QuestionPaper and a Quiz should be like an event that the admin creates to start a quiz and each QuestionPaper should be related to a Quiz. This will be added later.
2011-11-16DOC: Updating README.Prabhu Ramachandran
2011-11-15Submit form and then change page.Prabhu Ramachandran
2011-11-15ENH: Giving user feedback when code is submitted.Prabhu Ramachandran
Added JS code to tell the user that the system is checking the answer and also disable any further submitting at this time.
2011-11-15ENH: Saving the answer before evaluation.Prabhu Ramachandran
This is useful for debugging if we have a runaway loop or some stupid error with the code server. Also fixed a small issue with rendering the monitor when there are users with no profile but with a quiz in the system (like the admin).
2011-11-15BUG: Adding timeout to test code evaluation.Prabhu Ramachandran
If a user submitted code with an errant loop that loops forever or locks up for any reason, it would take the code server down. I now add a timeout of 3 seconds for the evaluation and tests failing which it is an error.
2011-11-14Showing all questions instead of only 3.Prabhu Ramachandran
2011-11-14This version works with Apache.Prabhu Ramachandran
2011-11-14ENH: Adding an intro page for usersPrabhu Ramachandran
This page provides instructions and rules to the users of the system.
2011-11-14ENH: Adding wsgi file to serve with Apache.Prabhu Ramachandran
2011-11-14ENH: Prettifying error message and show username.Prabhu Ramachandran
2011-11-13Revert last commit.Prabhu Ramachandran
"ENH: Improved traceback reporting from server. " Strangely, the reporting by this is not as good as my hand-rolled code. This reverts commit bc343c26cf3aac699c08129034b41317bac16f76.
2011-11-13ENH: Improved traceback reporting from server.Prabhu Ramachandran
2011-11-12DOC: Updating README with user dir info.Prabhu Ramachandran
2011-11-12ENH/BUG: Python server bug and user directoryPrabhu Ramachandran
The Python server was not setting the effective gid. There was also a bug in that traceback was not imported. Added option so that the python server chdirs to a user specific directory in order that a user can save files which could be used as part of the test.
2011-11-12ENH: Running remote code safely via XMLRPC.Prabhu Ramachandran
Adding a python_server which executes code as nobody safely so users cannot do too much damage.
2011-11-10Merge pull request #1 from nishi2rock/masterPrabhu Ramachandran
Implemented the user register and login feature
2011-11-10Users will be directed to the exam automatically after they registerNishanth Amuluru
2011-11-10Now the users cannot retake the test once they logout.Nishanth Amuluru
2011-11-10ENH: created user registration and loginNishanth Amuluru
2011-11-10ENH: User registration and loginNishanth Amuluru
2011-11-10ENH: Adding email address to registration form.Prabhu Ramachandran
2011-11-10ENH: Cleaning up test code add rollno to monitorPrabhu Ramachandran
Adding a rollnumber to monitor table and cleaning up the test code to be a separate function. This should be more reusable as we could technically run this in a separate process with an unpriviledged user.
2011-11-10ENH: Adding a monitor page to see resultsPrabhu Ramachandran
Adds a simple /exam/monitor page that displays current quiz results.
2011-11-09ENH: Saving answers and added quit page/button.Prabhu Ramachandran
Cleaned up the models so the answers submitted are all saved. Also added a quit button to each question page so a user can easily quit the exam in order that another may start.
2011-11-08ENH: Command to load questions from XML file.Prabhu Ramachandran
Added manage command to load questions from XML file. Updated README and including a simple set of sample questions for testing.
2011-11-08BUG: Fixing various issuesPrabhu Ramachandran
- Modified the question model to use description instead of question. - Once a user completes the exam it would not allow another one to start. - Improved the error messages displayed on errors. - If there is a mistake, it doesn't wipe out the old attempt so student can modify what they submitted last.
2011-11-08BUG: "exam/complete/" was not logging out.Prabhu Ramachandran
2011-11-08DOC: Example question in README.Prabhu Ramachandran
2011-11-08Adding git ignore.Prabhu Ramachandran
2011-11-08Making settings directory independent.Prabhu Ramachandran
2011-11-08Adding readme.Prabhu Ramachandran
2011-11-08Updating timezone to India.Prabhu Ramachandran
2011-11-08NEW: First cut of exam app.Prabhu Ramachandran
This application allows us to create questions via the admin interface. The questions are proper programming questions and one enters test cases for each question. The user logs in and submits the answer which is checked. The app is rather simple now but does work.