> > web.unloadhooks['input'] = web.input > > Without understanding how it works, I put that line before > web.run(urls, globals(), web.reloader) > and my ajax calls seem to work fine with both CherryPy and > SimpleHTTPServer.
web.py runs all unloadhooks after handling every request. Since web.input is added to unloadhooks, it will be called for every request. This will make sure that all POST data is read and nothing is left to interfere with the next request. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
