On Thu, 2008-18-09 at 01:51 -0600, Jorge Vargas wrote:
> 
> On Thu, Sep 18, 2008 at 1:24 AM, Mark Ramm <[EMAIL PROTECTED]> wrote:
> >
> > Well, using plain old wsgi apps should be as easy as using the
> > use_wsgi_app function, which can be imported from tg.controllers.
> >
> > if your_wsgi_app is a wsgi callable, you should be able to just do this:
> >
> > def some_controller(self, *args, **kwargs)
> >    return use_wsgi_app(your_wsgi_app)
> >
> that's too much tg2 for you :)
> 
> As for the original question. I'm not sure if it's available in CP2
> but according to this
> http://www.cherrypy.org/wiki/WSGI#WSGIEnviron
> you can access the environment with cherrypy.request.wsgi_environ

I have access to this, and inspecting it, it looks to the untutored eye
like a wsgi environ, so would that mean that I could call a wsgi app by
simply passing cherrypy.request.wsgi_environ into the app as the environ
arg?

What would be the best way to call it the app from within a cherrypy
controller?

Thanks
Iain



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to