ucsschool.exam package

Submodules

ucsschool.exam.exam_user_pyhook module

Base class for all Python based exam user hooks.

ATTENTION: These hooks will only be executed by the exam UMC module on the Primary Directory Node!

class ucsschool.exam.exam_user_pyhook.ExamUserPyHook(lo=None, dry_run=None, *args, **kwargs)[source]

Bases: ucsschool.importer.utils.import_pyhook.ImportPyHook

See docstring of ucsschool.importer.utils.import_pyhook.ImportPyHook to learn about the attributes available to the hooks methods.

Parameters
priority = {'pre_create': None}
pre_create(user_dn, al)[source]

Run code before creating an exam user.

  • The user does not exist in LDAP, yet.

  • set priority[“pre_create”] to an int, to enable this method

Parameters
  • user_dn – str: the future DN of the user

  • al – list of 2-tuples: ldapadd list

Returns

list of 2-tuples: modified ldapadd list