[mod_python] cgitb!

John Mudd mudd at vex.net
Sun Mar 28 15:36:51 EST 2004


Here's how to use cgitb, copied from
http://lists.community.tummy.com/pipermail/jotweb/2003-December/000007.html



import cgitb

def handler(req):
    try:
        handler2(req)
    except:
        req.content_type = 'text/html'
        cgitb.Hook(file = req).handle()
    
    return apache.OK


def handler2(req):
    # Regular code here, no return needed.
	



More information about the Mod_python mailing list