summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-21create_disk_images: create standalone VMDK imagesTimotej Lazar
They are useful in both VirtualBox and VMware. VDI is horrible and should die and also it is fat.
2019-02-21create_disk_images: modify image filenamesTimotej Lazar
Include computer name in filename for each disk and use a shorter hash placed immediately after task name. The hash is now based only on student ID and class_name, so it is always the same for each student. This should make images easier to locate in a large directory.
2019-02-20add_task: fix loading networks from task.pyTimotej Lazar
2019-02-20Update translationsTimotej Lazar
2019-02-20Fix instruction box in task_greetingTimotej Lazar
2019-02-20Fix and clean up token-based access to params and resultsTimotej Lazar
2019-02-19First try for token-based params and results requestsTimotej Lazar
2019-02-19Web: remove unused functionsTimotej Lazar
2019-02-19write_default_config: copy random_data directory to imageTimotej Lazar
Images are now generated without random_data directory (commit pending). Instead copy this directory when setting up the disks for each student.
2019-02-19Support qcow2 formatTimotej Lazar
Exactly the same as vmdk.
2019-02-16Improve task_greeting.html templateTimotej Lazar
Fix semantics and improve style.
2019-02-16Create disk images in multiple formatsTimotej Lazar
Refactor some code in create_disk_images.oy into a »prepare_disks« function that creates disk images in the given format for one task. Store paths to images in multiple formats in the database and update the front-end.
2019-02-12create_disk_images: add diskless computers to db.student_computersTimotej Lazar
Using defaultdict for all_disks resulted in diskless computers missing from DB. By iterating over keys in computers instead of all_disks computers with no disk are also added (and later shown on task page).
2018-10-13Fix two tasksTimotej Lazar
2018-10-13Merge branch 'improve-web'Timotej Lazar
Store instructions in HTML and render with jinja2. Add i18n with gettext / pybabel. Improve styling.
2018-10-13A couple of tweaksTimotej Lazar
2018-10-13Oops, don’t redefine prepare_disksTimotej Lazar
2018-10-13Update translationsTimotej Lazar
2018-10-13Add language links to task pageTimotej Lazar
2018-10-13Call write_default_config for arbiter in all KPOV 2018 tasksTimotej Lazar
2018-10-13Show results and parameters on task pageTimotej Lazar
2018-10-13add_task: fix returned hints in online task_checkTimotej Lazar
2018-10-13web.results_post: call task_check with defaultdict(str)Timotej Lazar
Many tasks barf on missing keys.
2018-10-13Fix urllib for Python 3Timotej Lazar
2018-10-13I18NTimotej Lazar
2018-10-13HTMLize instructions and use jinja2 to render themTimotej Lazar
Only fixed tasks for the kpov_2018 class for now.
2018-10-12Add .gitignoreTimotej Lazar
2018-10-12web: improve styleTimotej Lazar
2018-10-11web: remove duplicate functionTimotej Lazar
2018-10-11Improve style in task_greeting.html templateTimotej Lazar
2018-10-11add_task: read images as bytes, not strTimotej Lazar
2018-10-11Remove unused importsTimotej Lazar
2018-10-11Use backing files in created disk imagesTimotej Lazar
2018-10-11Write kpov_util.py to disk template in default configTimotej Lazar
2018-10-11kpov_util: better error reporting for SSH connectionsTimotej Lazar
2018-10-11test_task: pre-fill prompts with existing dataTimotej Lazar
Also some cleanups.
2018-10-10add_task: fix reference to instructionsTimotej Lazar
Python 3’s exec does not import symbols into the current namespace.
2018-10-10Use a single parameter for DB connectionTimotej Lazar
Could not get pymongo to work otherwise.
2018-10-09Oops, missed a link to kpov_random_helpersTimotej Lazar
2018-10-07Merge branch 'fix-tasks'Timotej Lazar
Fixes pexpect usage in most tasks. Several other cleanups and minor refactoring.
2018-10-07Fix or remove hashbangsTimotej Lazar
2018-10-07Run dos2unix on deviant filesTimotej Lazar
2018-10-07Remove coding: linesTimotej Lazar
Python 3 source is utf-8 by default.
2018-10-07Refactor SSH testing code out of individual tasksTimotej Lazar
Catch SSH errors and report failures as hints. Also some cleanups and 2to3 fixes.
2018-10-07test_task: store params in OrderedDict for Python≤3.5Timotej Lazar
2018-10-07util: add another path to search for fortunesTimotej Lazar
2018-10-07Rename kpov_random_helpers to kpov_utilTimotej Lazar
2018-10-07Improve ssh error reporting in some tasksTimotej Lazar
2018-10-07test_prepare_disks: use mkdir -p to create directoriesTimotej Lazar
Because sftp method barfed on existing paths.
2018-10-05Web: reorder functionsTimotej Lazar