Oops, looks like that got screwed up in a manual merge. I'll add it back in.
--Mark Ramm On Mon, Jul 7, 2008 at 5:38 PM, Jonathan LaCour <[EMAIL PROTECTED]> wrote: > > As I stated in my earlier email, I am performing an upgrade on my > application, and I have some custom WSGI middleware which requires > the use of beaker sessions, and placing my middleware on the outside > of the TurboGears WSGI stack isn't going to work for me. > > I noticed that in `tg/middleware.py`, there is a `wrap_app` keyword > argument that is in place, however it doesn't actually appear to let > you wrap the application. It needs to be changed to this: > > if wrap_app: > app = wrap_app(app) > > Once I make this change, I am able to do what I want, and my > middleware works perfectly. > > Thanks to everyone for their hard work on 2.0! > > -- > Jonathan LaCour > http://cleverdevil.org > > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
