On Aug 9, 2007, at 8:24 AM, Ian Bicking wrote:
Seems I found the problem with running wsgi application as Pylons controller: posted form data not available in wsgi application trough environ['wsgi.input']. This happens because at point, where wsgi application called, request input stream was already readed ( when PylonsBaseWSGIApp create WSGIRequest). Possible fix is to check controller's class before call setup_app_envin PylonsBaseWSGIApp, and don't call this method, if controller is notan ancestor of WSGIController.Yes; this is a problem where the form data gets put in environ['paste.parsed_formvars'], but is lost from wsgi.input. I thought the values were lazily parsed -- that is, unless you accesspylons.request.POST (or .params) it won't consume wsgi.input. But theremight be something in Pylons that is looking at that.
Routes, before 1.7 or so, would always check the form params causing parsing. Upgrade routes:
easy_install -U RoutesTo see if you had a prior version, upgrading should fix the parsing issue so that wsgi.input will be untouched.
HTH, Ben
smime.p7s
Description: S/MIME cryptographic signature
