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_env
in PylonsBaseWSGIApp, and don't call this method, if controller is not
an 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 access
pylons.request.POST (or .params) it won't consume wsgi.input. But there
might 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 Routes

To see if you had a prior version, upgrading should fix the parsing issue so that wsgi.input will be untouched.

HTH,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to