2023-11-17 16:09:11 +01:00
2023-11-16 12:18:22 +01:00
2023-11-16 12:18:22 +01:00
2023-11-16 12:18:22 +01:00
2023-11-16 12:18:22 +01:00
2023-11-17 16:09:11 +01:00
2023-11-16 12:18:22 +01:00
2023-11-17 16:09:11 +01:00

JackMoodleHelper

Python script to assist with import and export between JACK and Moodle. Also generates pdf files to print.

Usage

Use it as a command line script as follows:

usage: JackMoodleHelper.py [-h] -i MOODLE_INPUT [-j] [-p JACK_PREFIX]
                           [-t TAN_PREFIX] [-o MOODLE_OUTPUT] [-l LOGINS]

optional arguments:
  -h, --help            show this help message and exit
  -i MOODLE_INPUT, --moodle_input MOODLE_INPUT
                        the csv file downloaded from moodle
  -j, --jack            output matriculation numbers for JACK
  -p JACK_PREFIX, --jack_prefix JACK_PREFIX
                        prefix for output files for JACK, default: JACK_
  -t TAN_PREFIX, --tan_prefix TAN_PREFIX
                        prefix for tan files from JACK, default: examTans
  -o MOODLE_OUTPUT, --moodle_output MOODLE_OUTPUT
                        output file for upload to moodle
  -l LOGINS, --logins LOGINS
                        file with login information

Parameters

  • -h --help print the help page
  • -i MOODLE_INPUT, --moodle_input MOODLE_INPUT the input file from Moodle. You get this file by exporting the registration results. Make sure to select semicolon as the separator and include at least the following fields:
    • Datum
    • Startzeit
    • Endzeit
    • Ort
    • Zeitfenster
    • Vorname
    • Nachname
    • Teilnehmer-ID
  • -j, --jack if this flag is present, txt files with matriculation numbers will be generated, which can be uploaded to JACK. This is necessary so JACK knows who is registered.
  • -p JACK_PREFIX, --jack_prefix JACK_PREFIX optional prefix for the output files for JACK
  • -t TAN_PREFIX, --tan_prefix TAN_PREFIX prefix for the tan files from JACK. JACK generates TANs for each registered student. If the name is not examTans.csv, examTans-1.csv or similar, you can change this value.
  • -o MOODLE_OUTPUT, --moodle_output MOODLE_OUTPUT use this parameter to generate a csv file for moodle. This can be uploaded as feedback.
  • -l LOGINS, --logins LOGINS this is the file with login information for the pc pool. Get it from ZIM.

Output

This script generates multiple files. If -j, --jack is present, it generates txt files with matriculation numbers. If -o MOODLE_OUTPUT, --moodle_output MOODLE_OUTPUT is set, it also generates feedback for moodle. If the TAN file(s) and the specified login file are present, it also generates the following pdf files:

  • Serienbrief.pdf This is the pdf containing the login information and task description for every student.
  • Teilnehmerlisten.pdf This is a list of every registered student. Use it to check for attendance.
  • ExtraKennungen.pdf This file contains extra login information for students locking the pc by typing the wrong password.

TeX files

You need to modify Serienbrief.tex. In the preamble, you need to redefine the commands \taskdefinition, \testattype and \mainclass. The other .tex files don't need to be changed.

S
Description
Python script to assist with import and export between JACK and Moodle. Also generates pdf files to print.
Readme
1.7 MiB
Languages
Python 51.5%
TeX 48.5%