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

8.2. regx.cgi: Imports

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

Most of the imported modules are the same as for Section 6.2, “pickaregion.cgi: Imports”.

regx.cgi
import sys
import pycbc
import cbchistlib as lib
import tccpage2 as tp
from etbuilder import et, E, CLASS, subElement

The re module is Python's regular expression matching machine.

regx.cgi
import re

Constants related to the form on the top-level page are defined in Section 7, “topform.py: Form constants for the top-level page”. Constants related to the form on the page regx.cgi generates are defined in Section 9, “regform.py: Form constants for the regional index page”.

regx.cgi
import topform
import regform

We need the standard Python cgi library to receive the CGI arguments.

regx.cgi
import cgi

The singleton module comes from the author's standard logscan.py library.

regx.cgi
import singleton