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

6.4. Constants for HTML generation

These constants make it easier to generate some of the common HTML constructs. TABLE_ATTRS codifies some universal attributes of the table element.

webstats.py
TABLE_ATTRS  =  { 'cellpadding': '3', 'cellspacing': '3',
                   'border': '3' }

The next two are for specifying alignment in table cells.

webstats.py
L_ALIGN  =  { 'align': 'left' }
R_ALIGN  =  { 'align': 'right' }

LEAF_NAV_LINKS is a list of tccpage2.NavLink instances used to specify the navigational features on all the pages below the index page. See Section 2.3, “Navigational considerations”.

webstats.py
LEAF_NAV_LINKS  =  [
      tccpage2.NavLink ( "Next", [] ),
      tccpage2.NavLink ( "Previous", [] ),
      tccpage2.NavLink ( "TCC Web server statistics",
          [ ("TCC Web server statistics", INDEX_WEB_PATH.url) ] ),
      tccpage2.NavLink ( "Tech Computer Center",
          [ ("Tech Computer Center", TCC_WEB_PATH.url) ] ) ]