[mod_python] server.register_cleanup

Jay Love jsliv at jslove.org
Sun Dec 31 15:52:18 EST 2000


That got it.

Thanks-

Jay


Gregory Trubetskoy wrote:

> Ah, I see what's going on. It expecting a different kind of request
> object, the old built-in one, which is no req._req.
> 
> try this:
> 
> 	req.server.register_cleanup(req._req, ...)
> 
> --
>   Gregory (Grisha) Trubetskoy
>        grisha at modpython.org
> 
> On Sun, 31 Dec 2000, Jay Love wrote:
> 
>> I did, and it still happens.  Are you sure it's fixed?
>> 
>> Jay
>> 
>> 
>> Gregory Trubetskoy wrote:
>> 
>>> this is a sideffect of a bug in 2.6.3, which is fixed in 2.6.4
>>> 
>>> I recommend upgrading to 2.7.1
>>> 
>>> Grisha
>>> 
>>> On Sun, 31 Dec 2000, Jay Love wrote:
>>> 
>>>> Hi folks.
>>>> 
>>>> I'm having trouble using this function.  It gives me an error and tells 
>>>> me that the first argument must be a request object, which it is.
>>>> 
>>>> Here's the offending line, from the top of my handler function:
>>>> 
>>>> handler(self, req):
>>>> 	res.server.register_callback(req, self.cleanup_func)
>>>> 
>>>> Any thoughts on what's going wrong?
>>>> 
>>>> I'm using Apache 1.3.14, RH 7.0, mod_python 2.6.3
>>>> 
>>>> Jay
>>>> 
>>>> _______________________________________________
>>>> Mod_python mailing list
>>>> Mod_python at modpython.org
>>>> http://www.modpython.org/mailman/listinfo/mod_python
>>>> 





More information about the Mod_python mailing list