[Paste] Re: webob "marshalling"

Top Page
Author: Chris McDonough
Date:  
To: Chris Withers
CC: paste-users
Subject: [Paste] Re: webob "marshalling"

On 6/18/09 2:38 AM, Chris Withers wrote:
> Chris McDonough wrote:
>> I've spent a little time working code supporting this feature into WebOb.
>
> Wouldn't this make a better piece of middlewear on its own?


Not really. Middleware that unwinds the POST file pointer destined for the app
makes things slow, as it needs to unwind arbitrarily large POSTs and stash away
a tempfile so the app can use it. If the middleware doesn't do that itself, and
just passes down an API to do it, it's not really middleware anymore. It
*could* be a library (and is, as repoze.monty right now), but WebOb basically
"owns" the POST file pointer, and it's unwieldy to combine two libraries that
want to both unwind it in the same application.

- C

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---