uw.local.teaching.db package

Submodules

uw.local.teaching.db.aids module

Examination aids editing objects.

Classes for editing the permitted aids for an examination. This exists because formerly there was another editor for editing the default permitted aids for an admin unit. The implementation here shared code between the two editors. If it were re-implemented from scratch all of this would live in webui/aids_edit.py.

class uw.local.teaching.db.aids.AidsEditor(cursor)[source]

Bases: object

cursor
handle_post(form)[source]
render_aids(classes=None)[source]
render_form()[source]
class uw.local.teaching.db.aids.ExamAidsEditor(cursor, exam)[source]

Bases: uw.local.teaching.db.aids.AidsEditor

aids
delete_aid(code)[source]
delete_aids()[source]
exam
insert_aid(add_code, aid_notes)[source]
instructions
openbook
update_aids(openbook, notes)[source]
uw.local.teaching.db.aids.get_aid_classes(cursor)[source]
uw.local.teaching.db.aids.strip_prefix(str, prefix)[source]

uw.local.teaching.db.crowdmark module

uw.local.teaching.db.cursor module

uw.local.teaching.db.exam_print module

uw.local.teaching.db.pdf module

PDF processing.

This module implements additional PDF processing routines.

uw.local.teaching.db.pdf.embed_fonts(pdf)[source]

Embed all fonts in the given PDF document.

Parameters:pdf – The PDF document.
Returns:A 2-tuple consisting of a boolean success indication and either the PDF with fonts embedded or the error report from the sub-process.

Module contents

Database interface for Instructional Support.

Modules which implement the database interface for Instructional Support.