This CGI script is called by features of the regional index page to generate a detail table, with rows for each kind of bird and columns for the efforts.
The form has many buttons: the at the top reports on the circles whose checkboxes are set, but each primary circle entry is also a button that retrieves only data from that circle. In either case the various checkbox and radiobutton options on the form are to be applied.
The first released version of this script frequently ran
into memory limitations with large queries, because the
lxml module must build the entire XHTML
table in memory.
The cure for this is to use a completely different XHTML generation method, one that uses an insignificant amount of memory.
The primary package for low-memory-footprint XHTML
generation is sox.py: Sequential Output of XML
for Python.
The tccpagesox.py module
is an undocumented, hand-built version of the
tccpage2 module that works
with the sox module.