« Return to Thread: wsgi application integration for TG 11 app serving under cherrypy 2

wsgi application integration for TG 11 app serving under cherrypy 2

by Diez B. Roggisch :: Rate this Message:

Reply to Author | View in Thread


Hi,

I'm in need of integration for an existing WSGI-app into an existing
TurboGears 1.1 application to develop.

Because TG1.1 ships with cherrypy2.x, this can't be done with the latest and
greatest of CP :(

I know how I can deploy cherrypy 2 as WSGI-app itself, and could work around
by creating a WSGI-app that at some point (path) serves my TG app.

However for incremental migration of the existing app to TG, I'd like to do it
the other way round. So the idea is to do something like this:

class MyApp(Controller):
   @expose
   def method(self, ...):
        ...

   old_part = WSGIAdapter(old_part_entry_function)

where MyApp is the TG-controller of course.

Any suggestions on the feasibility and implementation for this? I'm pretty
sure I can mimic the WSGI-environ - the biggest issue is the
start_response-stuff & dealing with headers and the like.

Any suggestions highly appreciated.
--
Diez B. Roggisch

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

 « Return to Thread: wsgi application integration for TG 11 app serving under cherrypy 2

LightInTheBox - Buy quality products at wholesale price!