[mod_python] mp_server.register_cleanup

Sandino Flores Moreno tigrux at avantel.net
Mon Dec 2 15:01:55 EST 2002


In my code (http://mamba.sf.net)
I'm using it in in this way:

def endRequest(mamba):
        if mamba.processor.globals.has_key('endRequest'):
                endRequest = mamba.processor.globals['endRequest']
                endRequest()
        
def endChild(mamba):
        if mamba.processor.globals.has_key('endChild'):
                endChild = mamba.processor.globals['endChild']
                endChild()


req.register_cleanup(endRequest, (mamba,) )
req.server.register_cleanup(req, endChild, (mamba,) )




More information about the Mod_python mailing list