On Thu, 2010-09-16 at 13:44 +0200, Tarek Ziadé wrote: > On Thu, Sep 16, 2010 at 1:03 AM, Chris McDonough <chr...@plope.com> wrote: > > A PEP was submitted and accepted today for a WSGI successor protocol > > named Web3: > > > > http://python.org/dev/peps/pep-0444/ > > > > I'd encourage other folks to suggest improvements to that spec or to > > submit a competing spec, so we can get WSGI-on-Python3 settled soon. > > I have a request for the middleware stack. There should be one obvious > way to get back to the original application, through the stack > > Right now, I have to write crazy things like this depending on the stack: > > original_app = self.app.app.application.app > > Because some middleware use "app", some "application" etc.. > > I propose to write in the PEP that a middleware should provide an > "app" attribute to get the wrapped application or middleware. > It seems to be the most common name used out there.
We can't really mandate this because middleware is not required to be an instance. It can be a function. - C _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com