Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
¨‹EYc@s£dZddlZddlmZddlZddlZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZddlmZejd	ejƒZejd
ejejBƒZejdƒZdefd
„ƒYZd„Zd„Zd„Zdefd„ƒYZdeefd„ƒYZ de fd„ƒYZ!de fd„ƒYZ"de fd„ƒYZ#de#fd„ƒYZ$de#fd„ƒYZ%de#fd „ƒYZ&d!e#fd"„ƒYZ'd#e#fd$„ƒYZ(d%e#fd&„ƒYZ)d'e"fd(„ƒYZ*d)e*fd*„ƒYZ+d+e*fd,„ƒYZ,d-e*fd.„ƒYZ-d/e*fd0„ƒYZ.d1e"fd2„ƒYZ/d3e*fd4„ƒYZ0d5e*fd6„ƒYZ1d7e*fd8„ƒYZ2d9e!fd:„ƒYZ3d;e3fd<„ƒYZ4d=e3fd>„ƒYZ5d?e3fd@„ƒYZ6dAe3fdB„ƒYZ7dCe3fdD„ƒYZ8dEe3fdF„ƒYZ9dGe3fdH„ƒYZ:dIe3fdJ„ƒYZ;dKe3fdL„ƒYZ<dMe3fdN„ƒYZ=dOe3fdP„ƒYZ>dQe3fdR„ƒYZ?dSe3fdT„ƒYZ@dUe3fdV„ƒYZAdWe3fdX„ƒYZBdYe3fdZ„ƒYZCd[e3fd\„ƒYZDd]e3fd^„ƒYZEd_e3fd`„ƒYZFdae3fdb„ƒYZGdce3fdd„ƒYZHdee3fdf„ƒYZIdge3fdh„ƒYZJdie3fdj„ƒYZKdke3fdl„ƒYZLdme!fdn„ƒYZMdoeMfdp„ƒYZNdqeMfdr„ƒYZOdseMfdt„ƒYZPdueMfdv„ƒYZQdweMfdx„ƒYZRdyeMfdz„ƒYZSd{eMfd|„ƒYZTd}eMfd~„ƒYZUdefd€„ƒYZVyddlWmXZXWneYk
rnŽXxeZeXƒD]sZ[e\ƒj]e[ƒZ^e^re_e^e`ƒreae^eƒre^ek	re^e k	re^jbeceXe[ƒfe^_bqqW[[[^[Xdd‚gZdiZexïefe\ƒjgƒƒD]Ø\Z[Zhe_ehe`e	fƒr½eaeheƒr½e[jidƒƒr½edjje[ƒekecehd„dƒehe"e3eMfkeaehe#e"e3eMfƒfƒr_eheeehjm<nenehd…ƒr•d†joehjpjqƒjrƒƒeh_pq•q½q½W[[[hdS(‡s¯
This module processes Python exceptions that relate to HTTP exceptions
by defining a set of exceptions, all subclasses of HTTPException.
Each exception, in addition to being a Python exception that can be
raised and caught, is also a WSGI application and ``webob.Response``
object.

This module defines exceptions according to RFC 2068 [1]_ : codes with
100-300 are not really errors; 400's are client errors, and 500's are
server errors.  According to the WSGI specification [2]_ , the application
can call ``start_response`` more then once only under two conditions:
(a) the response has not yet been sent, or (b) if the second and
subsequent invocations of ``start_response`` have a valid ``exc_info``
argument obtained from ``sys.exc_info()``.  The WSGI specification then
requires the server or gateway to handle the case where content has been
sent and then an exception was encountered.

Exception
  HTTPException
    HTTPOk
      * 200 - :class:`HTTPOk`
      * 201 - :class:`HTTPCreated`
      * 202 - :class:`HTTPAccepted`
      * 203 - :class:`HTTPNonAuthoritativeInformation`
      * 204 - :class:`HTTPNoContent`
      * 205 - :class:`HTTPResetContent`
      * 206 - :class:`HTTPPartialContent`
    HTTPRedirection
      * 300 - :class:`HTTPMultipleChoices`
      * 301 - :class:`HTTPMovedPermanently`
      * 302 - :class:`HTTPFound`
      * 303 - :class:`HTTPSeeOther`
      * 304 - :class:`HTTPNotModified`
      * 305 - :class:`HTTPUseProxy`
      * 307 - :class:`HTTPTemporaryRedirect`
      * 308 - :class:`HTTPPermanentRedirect`
    HTTPError
      HTTPClientError
        * 400 - :class:`HTTPBadRequest`
        * 401 - :class:`HTTPUnauthorized`
        * 402 - :class:`HTTPPaymentRequired`
        * 403 - :class:`HTTPForbidden`
        * 404 - :class:`HTTPNotFound`
        * 405 - :class:`HTTPMethodNotAllowed`
        * 406 - :class:`HTTPNotAcceptable`
        * 407 - :class:`HTTPProxyAuthenticationRequired`
        * 408 - :class:`HTTPRequestTimeout`
        * 409 - :class:`HTTPConflict`
        * 410 - :class:`HTTPGone`
        * 411 - :class:`HTTPLengthRequired`
        * 412 - :class:`HTTPPreconditionFailed`
        * 413 - :class:`HTTPRequestEntityTooLarge`
        * 414 - :class:`HTTPRequestURITooLong`
        * 415 - :class:`HTTPUnsupportedMediaType`
        * 416 - :class:`HTTPRequestRangeNotSatisfiable`
        * 417 - :class:`HTTPExpectationFailed`
        * 422 - :class:`HTTPUnprocessableEntity`
        * 423 - :class:`HTTPLocked`
        * 424 - :class:`HTTPFailedDependency`
        * 428 - :class:`HTTPPreconditionRequired`
        * 429 - :class:`HTTPTooManyRequests`
        * 431 - :class:`HTTPRequestHeaderFieldsTooLarge`
        * 451 - :class:`HTTPUnavailableForLegalReasons`
      HTTPServerError
        * 500 - :class:`HTTPInternalServerError`
        * 501 - :class:`HTTPNotImplemented`
        * 502 - :class:`HTTPBadGateway`
        * 503 - :class:`HTTPServiceUnavailable`
        * 504 - :class:`HTTPGatewayTimeout`
        * 505 - :class:`HTTPVersionNotSupported`
        * 511 - :class:`HTTPNetworkAuthenticationRequired`

Usage notes
-----------

The HTTPException class is complicated by 4 factors:

  1. The content given to the exception may either be plain-text or
     as html-text.

  2. The template may want to have string-substitutions taken from
     the current ``environ`` or values from incoming headers. This
     is especially troublesome due to case sensitivity.

  3. The final output may either be text/plain or text/html
     mime-type as requested by the client application.

  4. Each exception has a default explanation, but those who
     raise exceptions may want to provide additional detail.

Subclass attributes and call parameters are designed to provide an easier path
through the complications.

Attributes:

   ``code``
       the HTTP status code for the exception

   ``title``
       remainder of the status line (stuff after the code)

   ``explanation``
       a plain-text explanation of the error message that is
       not subject to environment or header substitutions;
       it is accessible in the template via %(explanation)s

   ``detail``
       a plain-text message customization that is not subject
       to environment or header substitutions; accessible in
       the template via %(detail)s

   ``body_template``
       a content fragment (in HTML) used for environment and
       header substitution; the default template includes both
       the explanation and further detail provided in the
       message

Parameters:

   ``detail``
     a plain-text override of the default ``detail``

   ``headers``
     a list of (k,v) header pairs

   ``comment``
     a plain-text additional information which is
     usually stripped/hidden for end-users

   ``body_template``
     a string.Template object containing a content fragment in HTML
     that frames the explanation and further detail

To override the template (which is HTML content) or the plain-text
explanation, one must subclass the given exception; or customize it
after it has been created.  This particular breakdown of a message
into explanation, detail and template allows both the creation of
plain-text and html messages for various clients as well as
error-free substitution of environment variables and headers.


The subclasses of :class:`~_HTTPMove`
(:class:`~HTTPMultipleChoices`, :class:`~HTTPMovedPermanently`,
:class:`~HTTPFound`, :class:`~HTTPSeeOther`, :class:`~HTTPUseProxy` and
:class:`~HTTPTemporaryRedirect`) are redirections that require a ``Location``
field. Reflecting this, these subclasses have two additional keyword arguments:
``location`` and ``add_slash``.

Parameters:

    ``location``
      to set the location immediately

    ``add_slash``
      set to True to redirect to the same URL as the request, except with a
      ``/`` appended

Relative URLs in the location will be resolved to absolute.

References:

.. [1] http://www.python.org/peps/pep-0333.html#error-handling
.. [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5


iÿÿÿÿN(tTemplate(t
MIMEAccept(tclass_typesttext_t	text_typeturlparse(tRequest(tResponse(thtml_escapes<.*?>s<br.*?>s<!--|-->t	_lazifiedcBseZd„Zd„ZRS(cCs||_||_dS(N(tfunctvalue(tselfR
R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt__init__½s	cCs|j|jƒS(N(R
R(R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt__str__Ás(t__name__t
__module__R
R(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR	¼s	cs‡fd†}|S(Ncs
tˆ|ƒS(N(R	(R(R
(s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pytwrapperÅs((R
R((R
s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pytlazifyÄscCsq|dkrdSt|tƒsmt|dƒr=|jƒ}nt|tƒr^t|dƒ}qmt|ƒ}n|S(Ntt__unicode__sutf-8(tNonet
isinstanceRthasattrRtbytesR(R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt	no_escapeÉscCs^|jddƒ}|jddƒ}tjd|ƒ}tjd|ƒ}tjd|ƒ}|S(Ns
t s
R(treplacetbr_retsubt
comment_rettag_re(R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt
strip_tagsÕst
HTTPExceptioncBseZd„Zd„ZRS(cCstj||ƒ||_dS(N(t	ExceptionR
t
wsgi_response(RtmessageR#((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR
ÞscCs|j||ƒS(N(R#(Rtenvirontstart_response((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt__call__âs(RRR
R'(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR!Ýs	tWSGIHTTPExceptioncBs³eZdZdZdZedƒZedƒZedƒZe	Z
dddddd„Zd„Z
d„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zed„ƒZRS(iôsInternal Server ErrorRs5${explanation}<br /><br />
${detail}
${html_comment}
s${status}

${body}sj<html>
 <head>
  <title>${status}</title>
 </head>
 <body>
  <h1>${status}</h1>
  ${body}
 </body>
</html>cKs¼tj|dd|j|jf|tj||ƒ|rO|jj|ƒn||_||_|dk	rˆ||_
t|ƒ|_n|j
r |`|`n|dk	r¸||_ndS(Ntstatuss%s %s(RR
tcodettitleR"theaderstextendtdetailtcommentRt
body_templateRtbody_template_objt
empty_bodytcontent_typetcontent_lengthtjson_formatter(RR.R,R/R0R5tkw((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR
s 					cCs|jp|jS(N(R.texplanation(R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRscCs	t|ƒ}i||jƒd6||jp.dƒd6||jpDdƒd6}|jrqd||jƒ|d<n
d|d<tj|jk	róx*|jƒD]\}}||ƒ||<qšWx6|jjƒD]"\}}||ƒ||jƒ<qÊWn|j}|j	|ƒS(NR7RR.R/s<!-- %s -->thtml_comment(
RR7R.R/R(R1titemsR,tlowert
substitute(RR%tescapetargstktvtt_obj((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt
_make_bodys	
	cCsC|j|tƒ}t|ƒ}|jjd|jd|jd|ƒS(NR)R+tbody(RARR tplain_template_objR;R)R+(RR%RB((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt
plain_body2s
	cCs.|j|tƒ}|jjd|jd|ƒS(NR)RB(RARthtml_template_objR;R)(RR%RB((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt	html_body9scCsi|d6|d6|d6S(NR$R*R+((RRBR)R+R%((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR5>s
c	CsI|j|tƒ}|jd|d|jd|jd|ƒ}tj|ƒS(NRBR)R+R%(RARR5R)R+tjsontdumps(RR%RBtjsonbody((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt	json_bodyCsc
Csî|jdk	r|`nt|jƒ}|jddƒ}t|ƒ}|jddgƒ}|dkr~d}|j|ƒ}n9|dkr¢d}|j|ƒ}nd}|j	|ƒ}t
|d|jd|d|ƒ}	||	_|	||ƒS(	NtHTTP_ACCEPTRs	text/htmlsapplication/jsons
text/plainR)t
headerlistR3(
R4RtlistRLtgetRt
best_matchRFRJRDRR)R3(
RR%R&RLtaccept_valuetaccepttmatchR3RBtresp((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pytgenerate_responseIs(					cCse|ddk}|js(|js(|r@tj|||ƒ}n|j||ƒ}|rag}n|S(NtREQUEST_METHODtHEAD(thas_bodyR2RR'RT(RR%R&tis_headtapp_iter((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR'bs	cCs|S(N((R((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR#lsN(RRR*R+R7RR1RCREtFalseR2RR
RRARDRFR5RJRTR'tpropertyR#(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR(ås*													
t	HTTPErrorcBseZdZRS(sö
    base class for status codes in the 400's and 500's

    This is an exception which indicates that an error has occurred,
    and that any work in progress should not be committed.  These are
    typically results in the 400's and 500's.
    (RRt__doc__(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR\rstHTTPRedirectioncBseZdZRS(s
    base class for 300's status code (redirections)

    This is an abstract base class for 3xx redirection.  It indicates
    that further action needs to be taken by the user agent in order
    to fulfill the request.  It does not necessarly signal an error
    condition.
    (RRR](((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR^{stHTTPOkcBseZdZdZdZRS(s_
    Base class for the 200's status code (successful responses)

    code: 200, title: OK
    iÈtOK(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR_…stHTTPCreatedcBseZdZdZdZRS(s«
    subclass of :class:`~HTTPOk`

    This indicates that request has been fulfilled and resulted in a new
    resource being created.

    code: 201, title: Created
    iÉtCreated(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRa’stHTTPAcceptedcBs eZdZdZdZdZRS(s¼
    subclass of :class:`~HTTPOk`

    This indicates that the request has been accepted for processing, but the
    processing has not been completed.

    code: 202, title: Accepted
    iÊtAccepteds'The request is accepted for processing.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRcžstHTTPNonAuthoritativeInformationcBseZdZdZdZRS(s!
    subclass of :class:`~HTTPOk`

    This indicates that the returned metainformation in the entity-header is
    not the definitive set as available from the origin server, but is
    gathered from a local or a third-party copy.

    code: 203, title: Non-Authoritative Information
    iËsNon-Authoritative Information(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRe«s	t
HTTPNoContentcBs eZdZdZdZeZRS(sì
    subclass of :class:`~HTTPOk`

    This indicates that the server has fulfilled the request but does
    not need to return an entity-body, and might want to return updated
    metainformation.

    code: 204, title: No Content
    iÌs
No Content(RRR]R*R+tTrueR2(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRf¸s	tHTTPResetContentcBs eZdZdZdZeZRS(sì
    subclass of :class:`~HTTPOk`

    This indicates that the the server has fulfilled the request and
    the user agent SHOULD reset the document view which caused the
    request to be sent.

    code: 205, title: Reset Content
    iÍs
Reset Content(RRR]R*R+RgR2(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRhÆs	tHTTPPartialContentcBseZdZdZdZRS(s­
    subclass of :class:`~HTTPOk`

    This indicates that the server has fulfilled the partial GET
    request for the resource.

    code: 206, title: Partial Content
    iÎsPartial Content(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRiÔst	_HTTPMovecBsDeZdZdZedƒZddddded„Zd„Z	RS(s
    redirections which require a Location field

    Since a 'Location' header is a required attribute of 301, 302, 303,
    305, 307 and 308 (but not 304), this base class provides the mechanics to
    make this easy.

    You can provide a location keyword argument to set the location
    immediately.  You may also give ``add_slash=True`` if you want to
    redirect to the same URL as the request, except with a ``/`` added
    to the end.

    Relative URLs in the location will be resolved to absolute.
    sThe resource has been moved tosw${explanation} <a href="${location}">${location}</a>;
you should be redirected automatically.
${detail}
${html_comment}c	CsŒtt|ƒjd|d|d|d|ƒ|dk	rd|ksOd|kr^tdƒ‚n||_|rtdƒ‚qn||_dS(	NR.R,R/R0s
s
s.Control characters are not allowed in locations@You can only provide one of the arguments location and add_slash(tsuperRjR
Rt
ValueErrortlocationt	TypeErrort	add_slash(RR.R,R/R0RmRo((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR
ús	cCs’t|ƒ}|jr^|j}|d7}|jjdƒrR|d|jd7}n||_ntj|j|jƒ|_tt	|ƒj
||ƒS(Nt/tQUERY_STRINGt?(RRotpath_urlR%RNRmRturljoinRkRjR'(RR%R&treqturl((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR'
s		
N(
RRR]R7RR1RRZR
R'(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRjäs		tHTTPMultipleChoicescBseZdZdZdZRS(s‡
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource corresponds to any one
    of a set of representations, each with its own specific location,
    and agent-driven negotiation information is being provided so that
    the user can select a preferred representation and redirect its
    request to that location.

    code: 300, title: Multiple Choices
    i,sMultiple Choices(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRwstHTTPMovedPermanentlycBseZdZdZdZRS(s
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource has been assigned a new
    permanent URI and any future references to this resource SHOULD use
    one of the returned URIs.

    code: 301, title: Moved Permanently
    i-sMoved Permanently(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRx%s	t	HTTPFoundcBs eZdZdZdZdZRS(s¥
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource resides temporarily under
    a different URI.

    code: 302, title: Found
    i.tFoundsThe resource was found at(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRy2stHTTPSeeOthercBseZdZdZdZRS(sç
    subclass of :class:`~_HTTPMove`

    This indicates that the response to the request can be found under
    a different URI and SHOULD be retrieved using a GET method on that
    resource.

    code: 303, title: See Other
    i/s	See Other(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR{As	tHTTPNotModifiedcBs eZdZdZdZeZRS(s
    subclass of :class:`~HTTPRedirection`

    This indicates that if the client has performed a conditional GET
    request and access is allowed, but the document has not been
    modified, the server SHOULD respond with this status code.

    code: 304, title: Not Modified
    i0sNot Modified(RRR]R*R+RgR2(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR|Ns	tHTTPUseProxycBs eZdZdZdZdZRS(s¾
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource MUST be accessed through
    the proxy given by the Location field.

    code: 305, title: Use Proxy
    i1s	Use Proxys8The resource must be accessed through a proxy located at(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR}]stHTTPTemporaryRedirectcBseZdZdZdZRS(s²
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource resides temporarily
    under a different URI.

    code: 307, title: Temporary Redirect
    i3sTemporary Redirect(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR~lstHTTPPermanentRedirectcBseZdZdZdZRS(s²
    subclass of :class:`~_HTTPMove`

    This indicates that the requested resource resides permanently
    under a different URI.

    code: 308, title: Permanent Redirect
    i4sPermanent Redirect(RRR]R*R+(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRxstHTTPClientErrorcBs eZdZdZdZdZRS(s[
    base class for the 400's, where the client is in error

    This is an error condition in which the client is presumed to be
    in-error.  This is an expected problem, and thus is not considered
    a bug.  A server-side traceback is not warranted.  Unless specialized,
    this is a '400 Bad Request'

    code: 400, title: Bad Request
    isBad RequestsdThe server could not comply with the request since
it is either malformed or otherwise incorrect.
(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR€‰s
tHTTPBadRequestcBseZRS((RR(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR™stHTTPUnauthorizedcBs eZdZdZdZdZRS(s–
    subclass of :class:`~HTTPClientError`

    This indicates that the request requires user authentication.

    code: 401, title: Unauthorized
    i‘tUnauthorizedsìThis server could not verify that you are authorized to
access the document you requested.  Either you supplied the
wrong credentials (e.g., bad password), or your browser
does not understand how to supply the credentials required.
(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR‚œstHTTPPaymentRequiredcBs eZdZdZdZdZRS(sW
    subclass of :class:`~HTTPClientError`

    code: 402, title: Payment Required
    i’sPayment Requireds(Access was denied for financial reasons.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR„¬st
HTTPForbiddencBs eZdZdZdZdZRS(s¯
    subclass of :class:`~HTTPClientError`

    This indicates that the server understood the request, but is
    refusing to fulfill it.

    code: 403, title: Forbidden
    i“t	Forbiddens#Access was denied to this resource.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR…¶stHTTPNotFoundcBs eZdZdZdZdZRS(s¨
    subclass of :class:`~HTTPClientError`

    This indicates that the server did not find anything matching the
    Request-URI.

    code: 404, title: Not Found
    i”s	Not Founds The resource could not be found.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR‡ÃstHTTPMethodNotAllowedcBs&eZdZdZdZedƒZRS(sÞ
    subclass of :class:`~HTTPClientError`

    This indicates that the method specified in the Request-Line is
    not allowed for the resource identified by the Request-URI.

    code: 405, title: Method Not Allowed
    i•sMethod Not AllowedsUThe method ${REQUEST_METHOD} is not allowed for this resource. <br /><br />
${detail}(RRR]R*R+RR1(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRˆÐs
tHTTPNotAcceptablecBs&eZdZdZdZedƒZRS(s3
    subclass of :class:`~HTTPClientError`

    This indicates the resource identified by the request is only
    capable of generating response entities which have content
    characteristics not acceptable according to the accept headers
    sent in the request.

    code: 406, title: Not Acceptable
    i–sNot AcceptablesThe resource could not be generated that was acceptable to your browser
(content of type ${HTTP_ACCEPT}. <br /><br />
${detail}(RRR]R*R+RR1(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR‰às

tHTTPProxyAuthenticationRequiredcBs eZdZdZdZdZRS(sÒ
    subclass of :class:`~HTTPClientError`

    This is similar to 401, but indicates that the client must first
    authenticate itself with the proxy.

    code: 407, title: Proxy Authentication Required
    i—sProxy Authentication Requireds,Authentication with a local proxy is needed.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRŠóstHTTPRequestTimeoutcBs eZdZdZdZdZRS(sÎ
    subclass of :class:`~HTTPClientError`

    This indicates that the client did not produce a request within
    the time that the server was prepared to wait.

    code: 408, title: Request Timeout
    i˜sRequest TimeoutsHThe server has waited too long for the request to be sent by the client.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR‹stHTTPConflictcBs eZdZdZdZdZRS(sÉ
    subclass of :class:`~HTTPClientError`

    This indicates that the request could not be completed due to a
    conflict with the current state of the resource.

    code: 409, title: Conflict
    i™tConflicts:There was a conflict when trying to complete your request.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRŒstHTTPGonecBs eZdZdZdZdZRS(sÈ
    subclass of :class:`~HTTPClientError`

    This indicates that the requested resource is no longer available
    at the server and no forwarding address is known.

    code: 410, title: Gone
    ištGonesFThis resource is no longer available.  No forwarding address is given.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRŽstHTTPLengthRequiredcBs eZdZdZdZdZRS(sÂ
    subclass of :class:`~HTTPClientError`

    This indicates that the the server refuses to accept the request
    without a defined Content-Length.

    code: 411, title: Length Required
    i›sLength RequiredsContent-Length header required.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR*stHTTPPreconditionFailedcBs eZdZdZdZdZRS(só
    subclass of :class:`~HTTPClientError`

    This indicates that the precondition given in one or more of the
    request-header fields evaluated to false when it was tested on the
    server.

    code: 412, title: Precondition Failed
    iœsPrecondition FailedsRequest precondition failed.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR‘7s	tHTTPRequestEntityTooLargecBs eZdZdZdZdZRS(s
    subclass of :class:`~HTTPClientError`

    This indicates that the server is refusing to process a request
    because the request entity is larger than the server is willing or
    able to process.

    code: 413, title: Request Entity Too Large
    isRequest Entity Too Larges7The body of your request was too large for this server.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR’Es	tHTTPRequestURITooLongcBs eZdZdZdZdZRS(sõ
    subclass of :class:`~HTTPClientError`

    This indicates that the server is refusing to service the request
    because the Request-URI is longer than the server is willing to
    interpret.

    code: 414, title: Request-URI Too Long
    ižsRequest-URI Too Longs-The request URI was too long for this server.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR“Ss	tHTTPUnsupportedMediaTypecBs&eZdZdZdZedƒZRS(s
    subclass of :class:`~HTTPClientError`

    This indicates that the server is refusing to service the request
    because the entity of the request is in a format not supported by
    the requested resource for the requested method.

    code: 415, title: Unsupported Media Type
    iŸsUnsupported Media Types^The request media type ${CONTENT_TYPE} is not supported by this server.
<br /><br />
${detail}(RRR]R*R+RR1(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR”as
	tHTTPRequestRangeNotSatisfiablecBs eZdZdZdZdZRS(s“
    subclass of :class:`~HTTPClientError`

    The server SHOULD return a response with this status code if a
    request included a Range request-header field, and none of the
    range-specifier values in this field overlap the current extent
    of the selected resource, and the request did not include an
    If-Range request-header field.

    code: 416, title: Request Range Not Satisfiable
    i sRequest Range Not Satisfiables%The Range requested is not available.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR•sstHTTPExpectationFailedcBs eZdZdZdZdZRS(sÐ
    subclass of :class:`~HTTPClientError`

    This indidcates that the expectation given in an Expect
    request-header field could not be met by this server.

    code: 417, title: Expectation Failed
    i¡sExpectation FailedsExpectation failed.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR–ƒstHTTPUnprocessableEntitycBs eZdZdZdZdZRS(s´
    subclass of :class:`~HTTPClientError`

    This indicates that the server is unable to process the contained
    instructions.

    code: 422, title: Unprocessable Entity
    i¦sUnprocessable Entitys,Unable to process the contained instructions(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR—st
HTTPLockedcBs eZdZdZdZdZRS(s~
    subclass of :class:`~HTTPClientError`

    This indicates that the resource is locked.

    code: 423, title: Locked
    i§tLockedsThe resource is locked(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR˜žstHTTPFailedDependencycBs eZdZdZdZdZRS(sç
    subclass of :class:`~HTTPClientError`

    This indicates that the method could not be performed because the
    requested action depended on another action and that action failed.

    code: 424, title: Failed Dependency
    i¨sFailed DependencyssThe method could not be performed because the requested action dependended on another action and that action failed(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRš«stHTTPPreconditionRequiredcBs eZdZdZdZdZRS(sã
    subclass of :class:`~HTTPClientError`

    This indicates that the origin server requires the request to be
    conditional.  From RFC 6585, "Additional HTTP Status Codes".

    code: 428, title: Precondition Required
    i¬sPrecondition Requireds*This request is required to be conditional(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR›»stHTTPTooManyRequestscBs eZdZdZdZdZRS(s
    subclass of :class:`~HTTPClientError`

    This indicates that the client has sent too many requests in a
    given amount of time.  Useful for rate limiting.

    From RFC 6585, "Additional HTTP Status Codes".

    code: 429, title: Too Many Requests
    i­sToo Many Requestss?The client has sent too many requests in a given amount of time(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRœÈs
tHTTPRequestHeaderFieldsTooLargecBs eZdZdZdZdZRS(sh
    subclass of :class:`~HTTPClientError`

    This indicates that the server is unwilling to process the request
    because its header fields are too large. The request may be resubmitted
    after reducing the size of the request header fields.

    From RFC 6585, "Additional HTTP Status Codes".

    code: 431, title: Request Header Fields Too Large
    i¯sRequest Header Fields Too Larges(The request header fields were too large(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRØstHTTPUnavailableForLegalReasonscBs eZdZdZdZdZRS(s¯
    subclass of :class:`~HTTPClientError`

    This indicates that the server is unable to process the request
    because of legal reasons, e.g. censorship or government-mandated
    blocked access.

    From the draft "A New HTTP Status Code for Legally-restricted Resources"
    by Tim Bray:

    http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00

    code: 451, title: Unavailable For Legal Reasons
    iÃsUnavailable For Legal Reasonss3The resource is not available due to legal reasons.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRžéstHTTPServerErrorcBs eZdZdZdZdZRS(sF
    base class for the 500's, where the server is in-error

    This is an error condition in which the server is presumed to be
    in-error.  This is usually unexpected, and thus requires a traceback;
    ideally, opening a support ticket for the customer. Unless specialized,
    this is a '500 Internal Server Error'
    iôsInternal Server ErrorsUThe server has either erred or is incapable of performing
the requested operation.
(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyRŸstHTTPInternalServerErrorcBseZRS((RR(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR stHTTPNotImplementedcBs&eZdZdZdZedƒZRS(sÂ
    subclass of :class:`~HTTPServerError`

    This indicates that the server does not support the functionality
    required to fulfill the request.

    code: 501, title: Not Implemented
    iõsNot Implementeds`
The request method ${REQUEST_METHOD} is not implemented for this server. <br /><br />
${detail}(RRR]R*R+RR1(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¡s
tHTTPBadGatewaycBs eZdZdZdZdZRS(s
    subclass of :class:`~HTTPServerError`

    This indicates that the server, while acting as a gateway or proxy,
    received an invalid response from the upstream server it accessed
    in attempting to fulfill the request.

    code: 502, title: Bad Gateway
    iösBad GatewaysBad gateway.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¢(s	tHTTPServiceUnavailablecBs eZdZdZdZdZRS(sé
    subclass of :class:`~HTTPServerError`

    This indicates that the server is currently unable to handle the
    request due to a temporary overloading or maintenance of the server.

    code: 503, title: Service Unavailable
    i÷sService UnavailablesFThe server is currently unavailable. Please try again at a later time.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR£6stHTTPGatewayTimeoutcBs eZdZdZdZdZRS(sw
    subclass of :class:`~HTTPServerError`

    This indicates that the server, while acting as a gateway or proxy,
    did not receive a timely response from the upstream server specified
    by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server
    (e.g. DNS) it needed to access in attempting to complete the request.

    code: 504, title: Gateway Timeout
    iøsGateway TimeoutsThe gateway has timed out.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¤Ds
tHTTPVersionNotSupportedcBs eZdZdZdZdZRS(sö
    subclass of :class:`~HTTPServerError`

    This indicates that the server does not support, or refuses to
    support, the HTTP protocol version that was used in the request
    message.

    code: 505, title: HTTP Version Not Supported
    iùsHTTP Version Not Supporteds"The HTTP version is not supported.(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¥Ss	tHTTPInsufficientStoragecBs eZdZdZdZdZRS(s´
    subclass of :class:`~HTTPServerError`

    This indicates that the server does not have enough space to save
    the resource.

    code: 507, title: Insufficient Storage
    iûsInsufficient Storages/There was not enough space to save the resource(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¦ast!HTTPNetworkAuthenticationRequiredcBs eZdZdZdZdZRS(sì
    subclass of :class:`~HTTPServerError`

    This indicates that the client needs to authenticate to gain
    network access.  From RFC 6585, "Additional HTTP Status Codes".

    code: 511, title: Network Authentication Required
    iÿsNetwork Authentication Requireds"Network authentication is required(RRR]R*R+R7(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR§nstHTTPExceptionMiddlewarecBs eZdZd„Zd„ZRS(s€
    Middleware that catches exceptions in the sub-application.  This
    does not catch exceptions in the app_iter; only during the initial
    calling of the application.

    This should be put *very close* to applications that might raise
    these exceptions.  This should not be applied globally; letting
    *expected* exceptions raise through the WSGI stack is dangerous.
    cCs
||_dS(N(tapplication(RR©((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR
†scs[y|j|ˆƒSWn@tk
rVtjƒ‰d‡‡fd†}ˆd||ƒSXdS(Ncs%|dkrˆ}nˆ|||ƒS(N(R(R)R,texc_info(tparent_exc_infoR&(s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pytrepl_start_responses	i(R©R!tsysRªR(RR%R&R¬((R«R&s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR'ˆs
(RRR]R
R'(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyR¨{s		(thttpexceptionst
status_mapt_R*R7R(sR]RGtstringRtreR­twebob.acceptparseRtwebob.compatRRRRt
webob.requestRtwebob.responseRt
webob.utilRtcompiletSRtIRRtobjectR	RRR R"R!R(R\R^R_RaRcReRfRhRiRjRwRxRyR{R|R}R~RR€RR‚R„R…R‡RˆR‰RŠR‹RŒRŽRR‘R’R“R”R•R–R—R˜RšR›RœRRžRŸR R¡R¢R£R¤R¥R¦R§R¨tpasteR®tImportErrortdirtnametglobalsRNtobjRttypet
issubclasst	__bases__tgetattrt__all__R¯RMR9Rt
startswithtappendtallRR*RtjoinR7tstriptsplit(((s>/home/tvault/.virtenv/lib/python2.7/site-packages/webob/exc.pyt<module>¦sÈ"				



2












$#	"
+