On Sat, Oct 10, 2009 at 07:15 -0700, The Dod wrote:
> 
> Is there a simple way to raise 404 just like I do
>     raise web.seeother
> and make web.notfound() render the response for me?
> 
> All I've found is this cumbersome method:
>     raise HTTPError("404 Not Found", {'Content-Type':'text/
> html'},"<html>...</html>")

Hi Dod,

Does <http://webpy.org/cookbook/custom_notfound> answer your question,
by any chance?

Hraban

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to