web.web.debugerror'

Package web :: Package web :: Module debugerror' |
[hide private]
[frames] | no frames]

# Module debugerror'

source code

pretty debug errors (part of web.py)

portions adapted from Django <djangoproject.com> Copyright (c) 2005, the Lawrence Journal-World Used under the modified BSD license: http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5

Functions | [hide private]
debugerror() A replacement for `internalerror` that presents a nice page with lots of debug information for the programmer. | source code
djangoerror() | source code
emailerrors(to_address, olderror, from_address=None) Wraps the old `internalerror` handler (pass as `olderror`) to additionally email all errors to `to_address`, to aid in debugging production websites. | source code

Variables | [hide private]
| __package__ = ``'``web.web``'``
| djangoerror_r = `None` hash(x)
| djangoerror_t = ``'``$def with (exception_type, exception_value, f``...``
| whereami = ``'``/home/dgarcia/Projects/opengnsys/web/web``'``

Function Details | [hide private]

### debugerror() | source code
A replacement for `internalerror` that presents a nice page with lots of debug information for the programmer. (Based on the beautiful 500 page from [Django](http://djangoproject.com/), designed by [Wilson Miner](http://wilsonminer.com/).)

### emailerrors(to_address, olderror, from_address=None) | source code
Wraps the old `internalerror` handler (pass as `olderror`) to additionally email all errors to `to_address`, to aid in debugging production websites. Emails contain a normal text traceback as well as an attachment containing the nice `debugerror` page.

Variables Details | [hide private]

  ### djangoerror_t Value:
      '''$def with (exception_type, exception_value, frames)
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:/
      /www.w3.org/TR/html4/loose.dtd">
      <html lang="en">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" /
      >
        <meta name="robots" content="NONE,NOARCHIVE" />
      ...