Re: [web2py] Python Exceptions: how to show in View

2011-09-17 Thread Bruno Rocha
try: #do something except Exception, e: response.flash = "Error occured %s" % str(e) On Sat, Sep 17, 2011 at 9:26 AM, Vineet wrote: > Regarding user data validation, I am comfortble with client-side > validation. > I also have server-side customized validation routines. > I am aware that

[web2py] Python Exceptions: how to show in View

2011-09-17 Thread Vineet
Regarding user data validation, I am comfortble with client-side validation. I also have server-side customized validation routines. I am aware that a token is issued for an error. Whenever an exception is raised server-side, what is the simplest way to show it in a messagebox or a DIV (maybe in "f