On 1/29/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > Hello Shannon, > > Some time ago you wrote: > > > I like to have a facility called "action_results". It's a place where > > > I can put amessagethat will show up on the next page. It should > > > work whether aredirecthappens or not. In my old days, I use to put > > > it in the session so that it would survive if aredirecthappened > > > between the time that the controller set it and the time that the > > > template showed it. Aredirectis common after a successful post, of > > > course. > > >Another option would be to create a piece of middleware that looks for > > "environ['response.cookie']". This would be an instance of > > "Cookie.SimpleCookie" from the Python standard library. This piece of > > middleware would need to be "lower" in middleware.py than > > "httpexceptions.make_middleware" in order to set cookies even when an > > exception occurs. > > Did you implement anything along these lines? > > I'm accustomed to TurboGears equivalent - flash() - and currently > looking for a way to do similar thing with Pylons.
See http://pylonshq.com/project/pylonshq/ticket/136 Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---