Next / Previous / Contents / TCC Help System / NM Tech homepage

6.2. pickaregion.cgi: Imports

pickaregion.cgi
# - - - - -   I m p o r t s

We need the sys module for the standard output stream.

pickaregion.cgi
import sys

The pycbc module is our interface to the CBC database.

pickaregion.cgi
import pycbc

The cbchistlib module contains various utility functions for this application suite.

pickaregion.cgi
import cbchistlib as lib

The topform.py module defines constants related to the form on the top-level page. It is also used by regx.cgi to retrieve the submitted form values.

pickaregion.cgi
import topform

The tccpage2 module sets up a standard page style and navigational links. Because we refer to this module often, its name here is abbreviated as tp.

pickaregion.cgi
import tccpage2 as tp

We use the etbuilder module to construct the XHTML output.

pickaregion.cgi
from etbuilder import et, E, CLASS, subElement