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

if that's not possible I assume you can build a little converter,
after all it's just a dict! based on this explanation.
http://pythonpaste.org/webob/differences.html#cherrypy-turbogears

>
> On Thu, Sep 18, 2008 at 1:20 AM, iain duncan <[EMAIL PROTECTED]> wrote:
> >
> > Hey folks, I'm trying to get my app proxying requests to plain old wsgi
> > apps using webob. I suppose I need to take the incoming request and make
> > a webob request from it. Anyone know of utilities or examples of doing
> > that? A quick google didn't find one but I might not be searching right.
> >
> > Thanks
> > Iain
> >
> >
> > >
> >
>
>
>
> --
> 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" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to