On Sat, Jan 15, 2011 at 3:12 PM, Eric Lemoine <[email protected]> wrote: > On Sat, Jan 15, 2011 at 4:53 AM, Mike Orr <[email protected]> wrote: >> Hi all, I'm starting an article on Pyramid for Pylons 1 users, >> focusing on the differences between the frameworks and how to do >> familiar things in Pyramid. It'll also cover add-on stuff like forms >> and auth, or at least list the alternatives available. >> >> I'm wondering if there are any particular questions people would like >> included. If so, please email them to me. > > Thanks a lot for that Mike. > > I've been "pluging in" WSGI apps in Pylons controllers, as described > at > <http://pylonsbook.com/en/1.1/the-web-server-gateway-interface-wsgi.html#wsgi-in-pylons-controllers>. > I'd be very interested to know if and how this can be done in a > Pyramid application. >
Like this: http://docs.pylonsproject.org/projects/pyramid/dev/api/wsgi.html Also since a view can return a Response object you can do that: def my_wiew(request): request.path_info_pop() # if needed return request.get_response(wsgiapp) I use it to serve mercurial's hgweb apps and it just work. -- Gael > Cheers, > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : [email protected] > http://www.camptocamp.com > > -- > 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. > > -- 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.
