Ńň }R›Ic@s˝dZddkZddkZddkZddkZddklZddkl Z ddk l Z ddk l Z ddklZddklZdd klZlZdd klZddkZddkZdd klZdd klZd dddddddgZeieƒZ ei!i"ei!i#e$ƒdƒZ%dZ&dZ'de(fd„ƒYZ)dddgZ*d„Z+dd„Z-de(fd„ƒYZ.ddd „Z/ed!ƒZ0dS("sPylons' WSGI middlewaresi˙˙˙˙N(tasbool(tStatusBasedForward(tRecursiveMiddleware(tStaticURLParser(t EvalException(tErrorMiddleware(tRequesttResponse(tliteral(ttemplate_error_formatters(tcall_wsgi_applicationtErrorDocumentst ErrorHandlertStaticJavascriptsterror_document_templatet error_mappert footer_htmlt head_htmlt media_pathtmediaslsĎ

Online Assistance

 
Looking for help?

Here are a few tips for troubleshooting if the above traceback isn't helping out.

  1. Search the mail list
  2. Post the traceback, and ask for help on IRC
  3. Post a message to the mail list, referring to the posted traceback

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:

Pylons version %s
cBs eZdZd„Zd„ZRS(sMiddleware for intercepting requests for WebHelpers' included javascript files. Triggered when PATH_INFO begins with '/javascripts/'. cKs2ddkl}ttii|ƒ||_dS(Ni˙˙˙˙(tjavascript_path(twebhelpers.rails.asset_tagRRtostpathtdirnametjavascripts_app(tselftkwargsR((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyt__init__bscCsQ|iddƒidƒotidƒ|i||ƒS|ii||ƒSdS(Nt PATH_INFOts /javascripts/s3Handling Javascript URL (Starts with /javascripts/)(tgett startswithtlogtdebugRt not_found(Rtenvirontstart_response((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyt__call__gs (t__name__t __module__t__doc__RR&(((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyR [s tpylonstgenshit sqlalchemyc Ksżd|jo$|d=titiitdƒnt|idƒƒobtti iddƒti f}t dt ƒ}t ||dtd|d td |d tƒ}nt|||}|S( sŢErrorHandler Toggle If debug is enabled, this function will return the app wrapped in the WebError ``EvalException`` middleware which displays interactive debugging sessions when a traceback occurs. Otherwise, the app will be wrapped in the WebError ``ErrorMiddleware``, and the ``errorware`` dict will be passed into it. The ``ErrorMiddleware`` handles sending an email to the address listed in the .ini file, under ``email_to``. terror_templateiR"ttraceback_hosts pylonshq.comR*ttemplating_formatterst media_pathsRRt libraries(twarningstwarnR*tlegacyterror_template_warningtDeprecationWarningRRRtconfigt __version__tdictRRR Rt report_libsR(tappt global_conft errorwaretfootertpy_media((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyR qs     cKsŁ|idƒodSt|d<|djo h}ndddg}t|idƒƒp|idƒn||jo&dtih|d 6|d 6ƒ}|SdS( sZLegacy function used with ErrorDocuments to provide a mapping of error codes to handlespylons.error_callNi‘i“i”R"iôs/error/document/?%stmessagetcode(RtTruetNoneRtappendturllibt urlencode(RAR@R$R<tkwtcodesturl((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyR’s    tStatusCodeRedirectcBs&eZdZddd„Zd„ZRS( s?Internally redirects a request based on status code StatusCodeRedirect watches the response of the app it wraps. If the response is an error code in the errors sequence passed the request will be re-run with the path URL set to the path passed in. This operation is non-recursive and the output of the second request will be used no matter what it is. Should an application wish to bypass the error response (ie, to purposely return a 401), set ``environ['pylons.status_code_redirect'] = True`` in the application. ii‘i“i”s/error/documentcCsF||_||_tg}|D]}|t|ƒq ~ƒ|_dS(sInitialize the ErrorRedirect ``errors`` A sequence (list, tuple) of error code integers that should be caught. ``path`` The path to set for the next request down to the application. N(R;t error_pathttupletstrterrors(RR;RNRt_[1]tx((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyRľs  c CsÓt|i|dtƒ\}}}}|d |ijo‡d|joz|ioptd|d|d|ƒ|d Server Error %(code)s
%(message)s
(1R)tloggingtos.pathRRER2tpaste.deploy.convertersRtpaste.errordocumentRtpaste.recursiveRtpaste.urlparserRtweberror.evalexceptionRtweberror.errormiddlewareRtwebobRRtwebhelpers.htmlRR*t pylons.legacyt pylons.errorR t pylons.utilR t__all__t getLoggerR'R!RtjoinRt__file__RRRtobjectR R:R RCRRJR R(((s5/usr/lib/python2.6/site-packages/pylons/middleware.pyts>         !: ! 5