Looks like they are using a write method, rather than using the return
of the function.
I guess you could make a subclass, or a decorator that takes the
return of the function and turns it into a write() method call...
Would also need to translate other cherrypy features into the
tornadoweb ones.
ps, if you like tornado then eventlet will blow you way... much nicer
async imho. Uses the 'greenlet' module - which is kind of like a
stackless module for cpython. So you can write code that looks like
blocking code and have it work. Like micro threads (greenlets).
http://eventlet.org/On Sep 11, 10:31 am, Voltron <
nhy...@...> wrote:
>
http://www.tornadoweb.org/documentation#request-handlers-and-request-...
--~--~---------~--~----~------------~-------~--~----~
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-~----------~----~----~----~------~----~------~--~---