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 raised error:

----
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/web/application.py", line
245, in process
    return self.handle()
  File "/usr/lib/python2.4/site-packages/web/application.py", line
236, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/lib/python2.4/site-packages/web/application.py", line
387, in _delegate
    raise web.notfound()
TypeError: exceptions must be classes, instances, or strings
(deprecated), not TemplateResult
----

How can i make it use template result as notfound error msg?

Thanks very much. :)
--~--~---------~--~----~------------~-------~--~----~
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