http://docs.python.org/lib/module-atexit.html
Perhaps? You'll have to test it though. On Wed, Sep 10, 2008 at 12:09 PM, Matt Feifarek <[EMAIL PROTECTED]> wrote: > I'd like to stick some code somewhere where it will be run right before a > graceful shutdown. > > I realize that this isn't very reliable, as things can crash, but it's for a > kind-of hack anyway. > > I also realize that WSGI isn't really built this way; pylons doesn't assume > that it's running as a long-running process. So, perhaps it's paste that is > my target. > > And a related question: is there someplace to put some code that will run > when a session is expired? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
