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

10. hist.cgi: Generate a history detail page

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 Submit buttons: the Report on select circles at the top reports on the circles whose checkboxes are set, but each primary circle entry is also a Submit 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.