"""Pylons' WSGI middlewares""" import logging import os.path import urllib import warnings from paste.deploy.converters import asbool from paste.errordocument import StatusBasedForward from paste.recursive import RecursiveMiddleware from paste.urlparser import StaticURLParser from weberror.evalexception import EvalException from weberror.errormiddleware import ErrorMiddleware from webob import Request, Response from webhelpers.html import literal import pylons import pylons.legacy from pylons.error import template_error_formatters from pylons.util import call_wsgi_application __all__ = ['ErrorDocuments', 'ErrorHandler', 'StaticJavascripts', 'error_document_template', 'error_mapper', 'footer_html', 'head_html', 'media_path'] log = logging.getLogger(__name__) media_path = os.path.join(os.path.dirname(__file__), 'media') head_html = """\ """ footer_html = """\
Here are a few tips for troubleshooting if the above traceback isn't helping out.
Note: Clicking this button will post your traceback to the PylonsHQ website. The traceback includes the module names, Python version, and lines of code that you can see above. All tracebacks are posted anonymously unless you're logged into the PylonsHQ website in this browser.
The following mail lists will be searched:
Pylons
Python
Mako
SQLAlchemy
for: