On 12-Oct-07, at 11:59 AM, blaf wrote:
>
> Anand,
>
> could you provide more information on how to override error response
> with webpy-dev? It looks like line 221 of application.py: raise
> NotFound doesn't work. Changing it to return web.notfound() return at
> least the 404 Not Found message.
Thanks for pointing that. Thats a bug. But bug is elsewhere. It is
fixed now. Try with the latest code.
To override the notfound behavior, do the following:
def mynotfound():
return "<h1>Not Found</h1>"
app.notfound = mynotfound
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---