[mod_python] i beg the developers to make mod_python can be import in python command line.

Graham Dumpleton grahamd at dscpl.com.au
Tue Aug 15 06:01:03 EDT 2006

On 15/08/2006, at 6:53 PM, Richard Lewis wrote:

> class server:
>     def __init__(self):
>         self.cleanup_func = None
>         self.server_hostname = ""
>     def register_cleanup(self, req, func):
>         self.cleanup_func = func

Be aware that req.server.register_cleanup() doesn't really work  
properly and
is going to be disabled in mod_python 3.3 such that it doesn't do  
A stub will still be there so your code at least still runs, but no  
special actions
will performed on server shutdown.

What were you trying to do at server shutdown?

BTW, details about problems with server cleanups can be found at:



More information about the Mod_python mailing list