The webhelpers.pylonslib.Flash class is kind of poor. It's a bad idea to flash a message about a previous operation after redirecting to an unrelated page. It's just as bad to use the session as temp storage for such things (incurs filesystem/db access if you use multi-process design to serve the app, unless you use memcached but that doesnt work in beaker right now). It's best to use the c global and display an acknoledge page with the flash message(s) and let the user redirect using link(s) on this page.
On Dec 19, 11:57 am, Wichert Akkerman <[email protected]> wrote: > Often it is very useful to have flash/status messages of several > different types, for example to be able to differentiate between > informational messages, warnings and errors. To do that I made > a simple extension to WebHelpers to add category support to its > Flash class. The change is completely backwards compatible, so if > you do not need categories you will never notice them. > > Patch attached. > > Wichert. > > -- > Wichert Akkerman <[email protected]> It is simple to make > things.http://www.wiggy.net/ It is hard to make things > simple. > > category.diff > 1KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
