Re: setting a cookie whether a redirect happens or not - part 2

2007-02-20 Thread Mike Orr
On 2/20/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 2/18/07, Damjan [EMAIL PROTECTED] wrote: Since ticket 201 will be probably resolved for 0.9.5 and for those that find reading patches hard... this is what will be possible with 0.9.5 ... This is a sollution for the cookie

setting a cookie whether a redirect happens or not - part 2

2007-02-17 Thread Damjan
There was a discussion recently about this on this list but also on IRC etc. I have two sollutions, one was to make a custom redirect response that then I could modify. The other is to modify Pylons so that instead of re-raiseing the HTTPException in WSGIController.__call__ so that the

Re: setting a cookie whether a redirect happens or not

2007-02-05 Thread Shannon -jj Behrens
On 2/3/07, Damjan [EMAIL PROTECTED] wrote: The exmaple from Sergey Lipnevich seems to me more clean than what's implemented in the ticket #136. This is what he said on Nov 3 2006: response = redirect_to(controller = '...', action = '...', id = '...') # set cookie return response

Re: setting a cookie whether a redirect happens or not

2007-02-01 Thread Shannon -jj Behrens
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

Re: setting a cookie whether a redirect happens or not

2007-01-29 Thread Max Ischenko
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

setting a cookie whether a redirect happens or not

2006-11-02 Thread Shannon -jj Behrens
I like to have a facility called action_results. It's a place where I can put a message that will show up on the next page. It should work whether a redirect happens or not. In my old days, I use to put it in the session so that it would survive if a redirect happened between the time that the

Re: setting a cookie whether a redirect happens or not

2006-11-02 Thread Shannon -jj Behrens
On 11/2/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: I like to have a facility called action_results. It's a place where I can put a message that will show up on the next page. It should work whether a redirect happens or not. In my old days, I use to put it in the session so that it