Hi We've been trying to manage how we handle the middleware stack in our web framework. The PEP doesn't specify any standard way of doing this and the example is constructed with the next item in the stack as a parameter.
Our approach is to pass a WSGIStack variable in the environment variables and get each layer of middleware to pop off the next layer and call it, thus: def run_child(self, environ, startresponse): child = environ["j5_WSGIStack"].pop() return child(environ, startresponse) so that the middleware can transform that in whichever way it wants... Does this fit in well with how other people are doing things? Just curious David _______________________________________________ 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