List Info

Thread: redirect vs return




redirect vs return
user name
2006-03-14 19:02:11
Hi, in my cherrypy app I have a number of functions that do
some
processing and either return some results or call another
function to
display the results.  So far I've been using
internalredirect
(cherrypy.InternalRedirect("/display", results)
to call the display
functions, passing the results.  However return (return
display(results)) can also work by calling the display
function and
again passing the results.  The trouble with
internalredirect is having
to pass the html path to access a function versus return
using the
function name.  Which is the suggested/best method to use? 
Thanks,


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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )