#747: Flash precedence fix
--------------------------------------+-------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  anonymous
     Type:  defect                    |      Status:  new      
 Priority:  normal                    |   Milestone:           
Component:  CherryPy                  |     Version:  0.9a4    
 Severity:  normal                    |    Keywords:  patch    
--------------------------------------+-------------------------------------
 Patch attached fixes a subtle bug in turbogears.flash mechanism:

 If a controller method sets a flash message and returns dictionary, flash
 message should be visible on rendered template. Currently turbogears works
 like this, with the only exception: if tg_flash cookie exists (it was set
 in one of the previous requests ), it is used as flash message, regardless
 of what was set in current request.

 Attached patch fixes this behavour: the latest flash will be displayed.
 Unit test included.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/747>
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