univention.management.console.modules.schoolexam package#
- univention.management.console.modules.schoolexam.load_smb_default_file() LoadParm | None[source]#
Try to load the default samba shares.conf and retry if this fails. Bug 57367
- Raises:
UMC_Error
- class univention.management.console.modules.schoolexam.Instance(*args, **kwargs)[source]#
Bases:
SchoolBaseModule- deny_owner_change_permissions(filename: str) None[source]#
A user gets full control over her permissions by default. The SDDL string of the home dir is changed to - forbid exam-users to change the permissions and owner - overrides standard behavior, i.e. full control, with ‘edit’ for owners.
- set_nt_acls_on_exam_folders(exam_users: List[User]) None[source]#
Sets NT ACLs for exam users home dirs
- Parameters:
exam_users
- static set_datadir_immutable_flag(users, project, flag=True)[source]#
Sets or unsets the immutable bit on the recipients datadir depending on the flag :param project: The project to calculate the project directory :param users: The users to (un)set the immutable bit for :param flag: True to set the flag, False to unset
- query(request)[source]#
Get all exams (both running and planned).
- Parameters:
pattern (_sre.SRE_Pattern) – pattern that the result lists project names is matched against, defaults to .* (compiled by decorator).
filter (str) – filter result list by project creator (“sender”). Must be either all or private, defaults to private.
- Returns:
list of projects
- Return type:
- groups2students(request)[source]#
Get members of passed groups. Only students are returned.
request.options must contain a key groups with a list of DNs (only ucsschool.lib WorkGroup and SchoolClass are supported).
The UMC call will return a list of dicts:
[{'dn': …, 'firstname': …, 'lastname': …, 'school_classes': …}, …]