On Sat, 2004-07-31 at 22:35 -0700, Sean Leach wrote: > Does anyone have a good example of using sessions w/ quixote under > mod_python? I have found a couple postings on this list for modifying > mod_python_publisher.py, but that doesn't seem like a viable solution. > > I can't believe there wouldn't be a simple way of using a session in > mod_python...everything I have found is specific to scgi...mod_python > already does all of the session management, so I would think quixote > would just use that functionality (as opposed to me writing my own > session class etc.) > > Thanks for any info, and I apologize if I missed something and this is > obvious... > > Regards, > Sean The short answer is that, out of the box, the ModPythonPublisher is not session aware and so you will either have to modify mod_python_publisher.py or (a better solution) copy it and make the modifications there. The simplest case is to just change it to derive from SessionPublisher rather than Publisher, but that will leave Quixote managing sessions. Otherwise, you will have to write a session manager that uses mod_python to manage the sessions. It shouldn't be difficult, it just hasn't been done. I've been meaning to do it myself, but have been otherwise occupied. -- Shahms E. King