how to use cherrypy with isapi_wsgi?

13 views
Skip to first unread message

loui...@gmail.com

unread,
Jun 19, 2008, 3:54:10 AM6/19/08
to isapi_wsgi-dev
in my application,i try to use cherrypy with isapi_wsgi,but not
success.

def __ExtensionFactory__():
try:
#cpwsgiapp = cherrypy.Application(HelloWorld(),'F:
\python-work')
app = cherrypy.tree.mount(HelloWorld())
cherrypy.engine.start(blocking=False)
#wsgi_apps = [('/blog', blog), ('/forum', forum)]

#server =
wsgiserver.CherryPyWSGIServer(('localhost', 8080), HelloWorld(),
server_name='localhost')

return isapi_wsgi.ISAPISimpleHandler(app)
finally:
# This ensures that any left-over threads are stopped as well.
cherrypy.engine.stop()

Chris Lambacher

unread,
Jul 10, 2008, 5:26:05 PM7/10/08
to isapi_w...@googlegroups.com, loui...@google.com
I have written a blog post about how to do this with TurboGears
1.0/CherryPy 2.2:
http://whatschrisdoing.com/blog/2008/07/10/turbogears-isapi-wsgi-iis/

-Chris

Reply all
Reply to author
Forward
0 new messages