[mod_python] Adding an object to connection

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sun Feb 2 19:54:58 EST 2003


The connection object is still the old-style python object, and thus you
cannot add attributes to it. I plan to rewrite it (as well as the server
object), but it won't be in 3.0.2 - perhaps 3.0.3?

Grisha

On Sat, 1 Feb 2003, Scott McNutt wrote:

> It would be very convenient for my app to know when a
> connection is dropped (keepalive timeout or max requests
> event occurs on a client connection).
>
> The connection notes are for str types only ... and
> req.connection is readonly ... so I'm basically looking for some
> way to add an object attribute to the connection ... so I can at
> least know when the connection is dropped.
>
> I'd appreciate any ideas, suggestions, comments.
>
> Thank,
> --Scott
>
>
>
> _______________________________________________
> 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