On Dec 29, 2006, at 11:12 AM, ben adam wrote:

barrel auth is supposed to work with any wsgi app, so it should work
with a controller which is a wsgi app, but the following doesn't work.
I get the form to authenticate but after that it just hangs & doesn't
render the template....

Ok, found the issue. It's another case of the hellish behavior of environ['wsgi.input'] which contains the form POST upload. Pylons parses this for Routes for browser compat with PUT/DELETE methods as a _method field arg. Since Pylons parses the wsgi.input, when barrel tries to consume the same file stream, it hits an endless hang due to an attempt to re-read wsgi.input. This is without a doubt the most annoying aspect of WSGI.

Luke, when Paste's WSGIRequest object parses the form, it saves the parsed wsgi.input stream to environ['paste.parsed_formvars'] as a MultiDict which acts like a dict. Can Barrel check for that key and use it if present to get the form args?

Cheers,
Ben

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to