#!/usr/local/bin/python "CGI script to print out a sorted hotlist, and update the statistics." import pg, cgi, sys, os, string, traceback, StringIO db = pg.connect('hotlist', user='mwm', host='sql') # Data to format the results list head_format = """Content-type: text/html
Sort the other way
You can also check the status of the links on the hot list. Note that this could require waiting for a link to time out, which will take a while.
""" error_format = """Content-type: text/htmlPlease report the following error to the site admin
%s