Richard Lewis
richardlewis at fastmail.co.uk
Tue Aug 15 18:00:51 EDT 2006
On Tuesday 15 August 2006 11:01, you wrote: > 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 > anything. > A stub will still be there so your code at least still runs, but no > special actions > will performed on server shutdown. > Do you mean that there will be no opportunity to have code run at server shutdown? > What were you trying to do at server shutdown? Huh? Well, you know, just make sure that database connections are closed, and stuff.... Richard -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis Sonic Arts Research Archive http://www.sara.uea.ac.uk/ JID: ironchicken at jabber.earth.li -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|