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

6.5. buildEmptyPage(): Set up an empty page

pickaregion.cgi
# - - -   b u i l d E m p t y P a g e

def buildEmptyPage():
    '''Set up an empty XHTML page.

      [ return a new tp.TCCPage instance with generic content ]
    '''

These navigational links are placed on the page:

pickaregion.cgi
    #-- 1
    # [ navList  :=  a list of tp.NavLink instances defining the
    #       navigational links ]
    navList = [
        tp.NavLink("Next"),
        tp.NavLink("Previous"),
        tp.NavLink("Christmas Bird Count",
          [('', 'http://www.nmt.edu/~shipman/z/cbc/')]),
        tp.NavLink('Zoological Data Processing',
          [('', 'http://www.nmt.edu/~shipman/z/')]),
        tp.NavLink("Shipman's homepage",
          [('', 'http://www.nmt.edu/~shipman/')]),
        ]

    #-- 2
    # [ page  :=  a new tp.TCCPage with navigation list (navList)
    #             and stylesheet http://www.nmt.edu/~shipman/z/cbc/cbchist/cbchist.css ]
    page = tp.TCCPage('Select a Christmas Bird Count regional index',
                      navList, cssUrl='http://www.nmt.edu/~shipman/z/cbc/cbchist/cbchist.css')

    #-- 3
    return page