On Thu, Dec 18, 2008 at 1:34 PM, Zhang Huangbin <[email protected]> wrote:
>
> Hi, all.
>
> I tried to use template result as notfound message like this:
>
> ----
> # Customize page not found error.
> def notfound():
>    #return web.notfound(_('Sorry, Page not found.'))
>    return render.notfound()
>
> app.notfound = notfound

It should be:

def notfound():
    return web.notfound(render.notfound())

If that doesn't work, try:

def notfound():
    return web.notfound(str(render.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to