No it would completely change the web2py design to deal with only one exception/function.
On Jul 11, 7:41 pm, Joe Barnhart <joe.barnh...@gmail.com> wrote: > Can't we have it both ways? > > Add the generation of exceptions in the web2py classes and provide a > default exception handler in the boilerplate that redirects it to a > 404 page? > > My exceptions are a little rusty so maybe I'm thinking wrong. > > -- Joe Barnhart > > On Jul 11, 1:19 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > The issue is the SQLFORM and crud examples in the books and everywhere > > look like > > > def index(): > > return dict(form=crud.update(...)) > > > and we do not want to change them all into > > > def index(): > > try: > > form=crud.update(...) > > except somenewexcetpion: > > dosomething > > return dict(form=form) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---