#1128: turbogears.redirect() incorrectly used
-------------------------------------+--------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  defect                   |       Status:  new      
 Priority:  normal                   |    Milestone:  1.0b2    
Component:  TurboGears               |      Version:  1.0b1    
 Severity:  normal                   |   Resolution:           
 Keywords:                           |  
-------------------------------------+--------------------------------------
Comment (by [EMAIL PROTECTED]):

 To not break working TG apps, one can declare turbogears.redirect() as
 deprecated
 and define a new function like turbogears.HTTPRedirect() and recommend
 it's use in
 tutorial and in quickstart's auto generated code.

 {{{
 def HTTPRedirect(redirect_path, redirect_params=None, **kw):
     """A shortcut for cherrypy.HTTPRedirect."""
     return cherrypy.HTTPRedirect(
                     url(tgpath=redirect_path, tgparams=redirect_params,
 **kw))
 }}}

 The new function could use a raise or a return (this is not my choice).

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1128>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to