Never mind; I think I've tracked down the problem, and I think it's related to the fact that I inadvertently upgraded the python2.4 package on my system to version 2.4.2rc1 :-/

Nick

Nick wrote:
For some reason I can no longer execute a function registered with req.register_cleanup:

[Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1] exceptions.UnboundLocalError: 1124096352 [Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1] python_cleanup: Error calling cleanup object <function pse_cleanuphandler at 0x2aaaadb1f758>

I haven't had time to dig into the mod_python code yet, and I'll be somewhat busy this weekend, but I want to give a heads up.

I don't rule out the possiblity that it's because of my code ;-) It did worked before I upgraded, though. Basically I'm calling like so:

    req.register_cleanup(pse_cleanuphandler, req)

Nick

Reply via email to