-
Notifications
You must be signed in to change notification settings - Fork 0
Student Info
This is a helper script that contains hardcoded information about the class and mail account. global variables, their forms, and functions are:
These variables contain <student ID>: <student mail> pairs in the form of a dictionary. For each section, one dictionary should exist such as:
Section 1: sect01_emails
Section 2: sect02_emails
These email addresses will be used when quiz results are being sent.
These variables contain <student ID>: <student name> pairs in the form of a dictionary. For each section, one dictionary should exist such as:
Section 1: sect01_names
Section 2: sect02_names
These names can be used in the notification occurs. But the main reason for keeping these names is to comply with the moodle assignment system of BOUN since the system provides a dump of submitted files named with rather than which should be matched with IDs in order to identify the author of the submission.
These variables contain <student ID>: [0, True] pairs in the form of a dictionary. For each section, one dictionary should exist such as:
Section 1: sect1_grades
Section 2: sect2_grades
Note: This is a legacy variable used in attendance_checker script where elements in the array stand for grade/attendance and wrong section status respectively.
As explained(TODO), the project parametrized to work with 1+ amount of sections but never really completed(TODO). Most of the system is designed to work with 2 sections and 1 section in some parts. Following variables(in the form of a set of strings that are student IDs) exist to provide an easy way to keep track of permanent section switches which are not recognized by the registration system of the BOUN.
Since the registration system either assign students automatically to sections without considering their schedules and it is not possible to guarantee section switches even when two students are in an agreement since the only legal way to achieve this is for both of them to give up the course by the system and retake it with the other section. In this process, it is possible for a third or fourth student to take their places, leaving them outside due to quota issues. As a workaround, Cmpe 140 allows students to be switched between sections at the beginning of the term, which are stored in the following variables:
Section 1 -> Section 2: one2two
Section 2 -> Section 1: two2one
These parameters should be set for other scripts to authenticate properly when mail-related functions should be used.
gmail_user: mail address
gmail_password: mail password
gmail_app_password: app password