Thanks, and nice code! I had just started doing it the hard way :-)

class rpxnow_login:
        def GET(self):
                message = web.input(msg=None).message
                if(not 'tokenurl' in web.input()):
                        web.seeother('rpxnow_login?message=' + 
urllib.quote_plus('Missing
tokenurl parameter'))
        ...etc...

On Sat, May 30, 2009 at 2:23 AM, Branko Vukelic <[email protected]> wrote:
>
> On Sat, May 30, 2009 at 11:14 AM, Anand Chitipothu <[email protected]> 
> wrote:
>> Thats very tricky. It is called flash message and most web frameworks
>> have support for that.
>
> Yes, I'm coming from Rails, so I'm used to having flash thing. :P
>
>> Typically it is implemented by making the template display all the
>> available flash messages and delete them. To display a flash message,
>> message is added to session before the redirect. After redirect the
>> new page will display them and delete.
>
> Thanks. I think I got it.
>
>> watchdog.net uses a cookie based implementation of displaying flash messages.
>>
>> http://github.com/aaronsw/watchdog/blob/b012e33f9d3186138488fba5a507bc58e9fb81b5/utils/helpers.py#L40
>>
>> Anand
>
> --
> Branko
>
> eml: [email protected]
> alt: [email protected]
> blg1: http://sudologic.blogspot.com/
> blg2: http://brankovukelic.blogspot.com/
> img: http://picasaweb.google.com/bg.branko
> twt: http://www.twitter.com/foxbunny/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to