Anyone tried running CherryPY Apps on Tornado?

View: New views
3 Messages — Rating Filter:   Alert me  

Anyone tried running CherryPY Apps on Tornado?

by Voltron-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


http://www.tornadoweb.org/documentation#request-handlers-and-request-arguments
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


Re: Anyone tried running CherryPY Apps on Tornado?

by René Dudfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
-~----------~----~----~----~------~----~------~--~---


Re: Anyone tried running CherryPY Apps on Tornado?

by Voltron-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for the link Rene. The Eventlet docs look very spare though



On Sep 17, 1:09 pm, René Dudfield <ren...@...> wrote:

> 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
-~----------~----~----~----~------~----~------~--~---