[mod_python] server cleanup

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Mar 10 20:10:32 EST 2004


On Wed, 10 Mar 2004, Ben wrote:

> Grisha --
>
> why can you only get a server object within the scope of a request?

Yes.

> why does server.register_cleanup() require a request object param?

This is because the server object itself has no reference to a request,
but a request is required for logging AFAIR.

Grisha


More information about the Mod_python mailing list