On Sat, May 30, 2009 at 7:48 PM, Samuel Wan <[email protected]> wrote: > > 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... >
If it's just an error in the form or something like that, there's an easier way (I think). Just `render.login(error_messages)`. I use a dict to hold the messages, but then i have to pass the template an empty dict when using it with GET request... -- 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 -~----------~----~----~----~------~----~------~--~---
