Latest Version: 0.9.6.2

Warning

This documentation does not refer to the most recent version of Pylons. Current Documentation

middleware

EvalException, Error Documents, and Globals middleware


Functions

f ErrorHandler(app, global_conf) ...

ErrorHandler Toggle

If debug is enabled, this function will return the app wrapped in our customized Paste EvalException middleware we have called the PylonsEvalException.

Otherwise, the app will be wrapped in the Paste ErrorMiddleware, and the errorware dict will be passed into it.

f ErrorDocuments(app, global_conf=None, mapper=None) ...

Wraps the app in error docs using Paste RecursiveMiddleware and ErrorDocumentsMiddleware

All the args are passed directly into the ErrorDocumentsMiddleware. If no mapper is given, a default error_mapper is passed in.

Classes

C StaticJavascripts(...) ...

Middleware for intercepting requests for WebHelpers' included javascript files.

Triggered when PATH_INFO begins with '/javascripts/'.

This class contains 2 members.

See the source for more information.

Top