pylons.middleware – WSGI Middleware

Module Contents

Note

The errorware dictionary is constructed from the settings in the DEFAULT section of development.ini. the recognised keys and settings at initialization are:
  • error_email = conf.get(‘email_to’)
  • error_log = conf.get(‘error_log’, None)
  • smtp_server = conf.get(‘smtp_server’,’localhost’)
  • error_subject_prefix = conf.get(‘error_subject_prefix’, ‘WebApp Error: ‘)
  • from_address = conf.get(‘from_address’, conf.get(‘error_email_from’, 'pylons@yourapp.com‘))
  • error_message = conf.get(‘error_message’, ‘An internal server error occurred’)

Referenced classes

Pylons middleware uses WebError to effect the error-handling. The two classes implicated are:

Legacy

Changed in version 0.9.7: These functions were deprecated in Pylons 0.9.7, and have been superceded by the StatusCodeRedirect middleware.

Project Versions

Table Of Contents

Previous topic

pylons.log – Logging for WSGI errors

Next topic

pylons.templating – Render functions and helpers

This Page