Quoting "W. Martin Borgert" <[email protected]>:
> when one has defined an URL in web.py, that is not implemented, one
> gets an "internal error". I'ld prefer to have a notfound instead.
> This change works for me, but I'm not sure, whether it is the right
> way to do.
I think, I just found the "right way":
def internalerror():
return web.notfound("<html>foobar</html>")
app = web.application(urls, globals())
app.internalerror = internalerror
Same handling as notfound :~)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---