uw.local package

Subpackages

Submodules

uw.local.config module

uw.local.dbtools module

uw.local.termtools module

class uw.local.termtools.Term(sequence)[source]

Bases: object

Class representing UW terms.

Terms can be converted to and from term codes, written as text strings or as integers. Methods are available to print useful representations of terms and perform arithmetic on them.

abbreviation()[source]
code()[source]
countFrom(by=1)[source]
description()[source]
month()[source]
nextTerm()[source]
nextYear()[source]
numericCode()[source]
oldCode()[source]
prevTerm()[source]
prevYear()[source]
render_date_selector(name, current=None)[source]
render_time_selector(name, start, hours, current=None)[source]
seasonInitial()[source]
seasonName()[source]
startDate()[source]
year()[source]
uw.local.termtools.current()[source]
uw.local.termtools.fromCode(code)[source]
uw.local.termtools.fromDate(date)[source]
uw.local.termtools.fromOldCode(code)[source]

Convert an old term code into a term object.

Years from 50-99 are assuming to be in the 1900s while 00-49 are 2000s. This allows all old term codes from just before the founding of the University up to Fall 2049 to be processed correctly. If we’re still using the old codes for anything in Fall 2049 then I’m not responsible for the consequences.

uw.local.termtools.make(year, month)[source]
uw.local.termtools.render_term_select(name, terms, term=None, blank=False, class_=None)[source]

uw.local.webtools module

Module contents

UW-local modules.

This package contains all code specific to UW applications. Code in here is likely not useful out of the context of each individual application.