I just checked in change to Tornado that enables you to run any WSGI- compatible framework on Tornado's HTTP server. You can find it in a class called WSGIContainer in wsgi.py:
http://github.com/facebook/tornado/blob/master/tornado/wsgi.py#L188 You will have to check out Tornado from github to get the change; it is not yet included in the tarball distribution. I have tested with web.py, but I have not tested extensively, and certainly not with extremely involved applications. If any web.py users/devs are interested, would love for you to try it out with a more involved web.py app and let me know what issues you find so I can fix them. Here is the web.py Hello, world on Twisted as a starting point: import tornado.httpserver import tornado.ioloop import tornado.wsgi import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name = 'world' return 'Hello, ' + name + '!' def main(): container = tornado.wsgi.WSGIContainer(app.wsgifunc()) http_server = tornado.httpserver.HTTPServer(container) http_server.listen(8888) tornado.ioloop.IOLoop.instance().start() if __name__ == "__main__": main() On Sep 10, 12:48 pm, Aaron Swartz <[email protected]> wrote: > Bret Taylor's written his second web.py clone (his first was Google > App Engine's webapp). Does someone want to see if they can port web.py > to talk to his nonblocking webserver: > > http://www.tornadoweb.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
