Disabling 500 debug pages

2 views
Skip to first unread message

Jonas Galvez

unread,
May 13, 2009, 5:06:06 AM5/13/09
to web.py
Will

web.webapi.internalerror = web.emailerrors('jonas@...',
web.debugerror)

Work with web 0.3? I need to disable the debug page of an application
in production already.

--Jonas Galvez

Anand Chitipothu

unread,
May 13, 2009, 5:24:36 AM5/13/09
to we...@googlegroups.com
2009/5/13 Jonas Galvez <jonas...@gmail.com>:

Try this if you want to disable debug error, but want to get the debug
error as email:

app.internalerror = web.emailerrors('jonas@...', web.webapi._InternalError)

Zhang Huangbin

unread,
May 14, 2009, 9:38:27 AM5/14/09
to web.py


On May 13, 5:24 pm, Anand Chitipothu <anandol...@gmail.com> wrote:

> Try this if you want to disable debug error, but want to get the debug
> error as email:
>
> app.internalerror = web.emailerrors('jonas@...', web.webapi._InternalError)

Why sender and recipient address are same?

----
To: the bugfixer <www(at)a.cn>
From: your buggy site <www(at)a.cn>
----

Zhang Huangbin

unread,
May 14, 2009, 10:10:00 AM5/14/09
to we...@googlegroups.com

Patch attacted.

Add from_address and to_address, escape with utils.safestr().

--
Best regards.

Zhang Huangbin

- Open Source Mail Server Solution for RHEL, CentOS, Debian:
http://code.google.com/p/iredmail/

debugerror.py.patch
Reply all
Reply to author
Forward
0 new messages