/opt/alt/python37/lib/python3.7/site-packages/paste
NameSizeModeActions
auth/-0755rm
cowbell/-0755rm
debug/-0755rm
evalexception/-0755rm
exceptions/-0755rm
util/-0755rm
__pycache__/-0755rm
cascade.py45080644editdlrm
cascade.pyc44750644editdlrm
cascade.pyo44750644editdlrm
cgiapp.py95900644editdlrm
cgiapp.pyc85540644editdlrm
cgiapp.pyo83370644editdlrm
cgitb_catcher.py37520644editdlrm
cgitb_catcher.pyc38510644editdlrm
cgitb_catcher.pyo38510644editdlrm
config.py43120644editdlrm
config.pyc52840644editdlrm
config.pyo52840644editdlrm
errordocument.py137770644editdlrm
errordocument.pyc130800644editdlrm
errordocument.pyo130800644editdlrm
fileapp.py136080644editdlrm
fileapp.pyc133520644editdlrm
fileapp.pyo132180644editdlrm
fixture.py579920644editdlrm
fixture.py.stdlib580750644editdlrm
fixture.pyc607260644editdlrm
fixture.pyo584530644editdlrm
flup_session.py39410644editdlrm
flup_session.pyc39590644editdlrm
flup_session.pyo39590644editdlrm
gzipper.py36920644editdlrm
gzipper.pyc45780644editdlrm
gzipper.pyo45780644editdlrm
httpexceptions.py242220644editdlrm
httpexceptions.pyc283800644editdlrm
httpexceptions.pyo276230644editdlrm
httpheaders.py430900644editdlrm
httpheaders.pyc452740644editdlrm
httpheaders.pyo439740644editdlrm
httpserver.py556620644editdlrm
httpserver.pyc486610644editdlrm
httpserver.pyo479990644editdlrm
lint.py149990644editdlrm
lint.pyc178890644editdlrm
lint.pyo137720644editdlrm
modpython.py79760644editdlrm
modpython.pyc89530644editdlrm
modpython.pyo89530644editdlrm
pony.py22790644editdlrm
pony.pyc27530644editdlrm
pony.pyo27530644editdlrm
progress.py81620644editdlrm
progress.pyc94160644editdlrm
progress.pyo94160644editdlrm
proxy.py101810644editdlrm
proxy.pyc87870644editdlrm
proxy.pyo87870644editdlrm
recursive.py146640644editdlrm
recursive.pyc181410644editdlrm
recursive.pyo178160644editdlrm
registry.py221930644editdlrm
registry.pyc229410644editdlrm
registry.pyo229410644editdlrm
reloader.py60100644editdlrm
reloader.pyc61340644editdlrm
reloader.pyo61340644editdlrm
request.py141450644editdlrm
request.pyc140650644editdlrm
request.pyo139690644editdlrm
response.py76590644editdlrm
response.pyc94680644editdlrm
response.pyo93840644editdlrm
session.py113350644editdlrm
session.pyc120530644editdlrm
session.pyo120530644editdlrm
transaction.py43620644editdlrm
transaction.pyc58570644editdlrm
transaction.pyo58570644editdlrm
translogger.py48120644editdlrm
translogger.pyc43740644editdlrm
translogger.pyo43740644editdlrm
url.py146240644editdlrm
url.pyc185810644editdlrm
url.pyo185810644editdlrm
urlmap.py90320644editdlrm
urlmap.pyc97730644editdlrm
urlmap.pyo96250644editdlrm
urlparser.py264240644editdlrm
urlparser.pyc226700644editdlrm
urlparser.pyo224940644editdlrm
wsgilib.py201340644editdlrm
wsgilib.pyc222360644editdlrm
wsgilib.pyo221800644editdlrm
wsgiwrappers.py221650644editdlrm
wsgiwrappers.pyc244500644editdlrm
wsgiwrappers.pyo244500644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyc (13352B)
Ñò aòNc @sædZddkZddkZddkZddkZddkZddkTddkTdZdZ dddd gZ de fd „ƒYZ de fd „ƒYZ d e fd „ƒYZde fd„ƒYZd e fd„ƒYZdS(s¦ This module handles sending static content such as in-memory data or files. At this time it has cache helpers and understands the if-modified-since request header. iÿÿÿÿN(t*iitDataApptFileAppt DirectoryAppt ArchiveStorecBs\eZdZd Zd d d„Zd„Zd d„Zd„Zd„Z d„Z d „Z RS( s¨ Returns an application that will send content in a single chunk, this application has support for setting cache-control and for responding to conditional (or HEAD) requests. Constructor Arguments: ``content`` the content being sent to the client ``headers`` the headers to send /w the response The remaining ``kwargs`` correspond to headers, where the underscore is replaced with a dash. These values are only added to the headers if they are not already provided; thus, they can be used for default values. Examples include, but are not limited to: ``content_type`` ``content_encoding`` ``content_location`` ``cache_control()`` This method provides validated construction of the ``Cache-Control`` header as well as providing for automated filling out of the ``EXPIRES`` header for HTTP/1.0 clients. ``set_content()`` This method provides a mechanism to set the content after the application has been constructed. This method does things like changing ``Last-Modified`` and ``Content-Length`` headers. tGETtHEADcKs t|tdƒtfƒpt‚d|_d|_d|_d|_|dj o ||_ n|pg|_ x9|i ƒD]+\}}t |ƒ}|i |i |ƒq~Wti |i dtƒt|i ƒpti |i ƒn|dj o|i|ƒndS(Nitbytes(t isinstancettypetNonetlisttAssertionErrortexpirestcontenttcontent_lengtht last_modifiedtallowed_methodstheaderstitemst get_headertupdatet ACCEPT_RANGEStTruet CONTENT_TYPEt set_content(tselfRRRtkwargstktvtheader((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyt__init__;s"#         cKs#ti|i|pd|_|S(N(t CACHE_CONTROLtapplyRR R (RR((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyt cache_controlNscCsr|dj pt‚|djotiƒ|_n ||_||_t|ƒ|_ti|i d|iƒ|S(Nttime( R R R#RRtlenRt LAST_MODIFIEDRR(RRR((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRRs   cKsti|i||S(N(tCONTENT_DISPOSITIONR!R(RR((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pytcontent_disposition]scCsi|diƒ}||ijo9td|dddi|iƒfgƒ}|||ƒS|i||ƒS(NtREQUEST_METHODsYou cannot %s a fileRtAllowt,(tupperRtHTTPMethodNotAllowedtjointget(Rtenvirontstart_responsetmethodtexc((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyt__call__as cCsd|i|ifS(Ns"%s-%s"(RR(R((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pytcalculate_etagjscCsò|i}|iƒ}ti||ƒ|idj oti|d|iƒny…ti|ƒ}|okxh|D]\}||jp |djo<x$t dt ƒD]}|i |ƒq W|d|ƒdgSqpWnWn"t j o}|i ||ƒSX|pŽyeti|ƒ} | t|iƒjo<x$t dt ƒD]}|i |ƒq9W|d|ƒdgSWqt j o}|i ||ƒSXnd|id} } ti|ƒ} | o›d| djoŠdt| dƒjos| dd\} } | p |id} | |ijp | | jo*td |it|ƒfƒi ||ƒSn| | d} ti|d | d | d |iƒti|| ƒ| |ijo|d |ƒn|d|ƒ|idj o|i| | d!gS| | fS(NtdeltaRtentitys304 Not ModifiedtiiRsWRange request was made beyond the end of the content, which is %s long. Range: %s t first_bytet last_bytet total_lengths200 OKs206 Partial Content(RR4tETAGRR R tEXPIRESt IF_NONE_MATCHtparset list_headersRtdeletetHTTPBadRequesttwsgi_applicationtIF_MODIFIED_SINCEtintRRtRANGER$tHTTPRequestRangeNotSatisfiablet CONTENT_RANGEtCONTENT_LENGTHR(RR/R0Rt current_etagt client_etagstetagtheadtexcet client_clocktlowerR+trangeR((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR.msb     /  (RRN( t__name__t __module__t__doc__RR RR"RR'R3R4R.(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRs"   cBs8eZdZdd„Zd„Zed„Zd„ZRS(sÁ Returns an application that will send the file at the given filename. Adds a mime type based on ``mimetypes.guess_type()``. See DataApp for the arguments beyond ``filename``. cKsy||_|iƒ\}}|od|jo||d/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR°s cCsti|iƒS(N(t mimetypesRWRV(R((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRW¹scCs¹ti|iƒ}| o|i|ijodS|i|_|itjo9t|idƒ}|i|i ƒ|iƒ|i ƒn/d|_ |i|_ ti|id|iƒdS(NtrbR#(toststatRVtst_mtimeRtst_sizet CACHE_SIZEtopenRtreadtcloseR RRR%RR(RtforceR[tfh((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR¼s   c Cs…|diƒdj}dt|ƒiƒjo|idtƒn |iƒ|ip’tii|i ƒp't ddd|i ƒ}|||ƒSyt |i dƒ}Wqét t fj o&}td |ƒ}|i||ƒSXnti|||ƒ}t|tƒo|od gS|S|\}} |od gS|i|ƒ|id dƒ} | o| |tƒSt|d | ƒSdS( NR(Rs max-age=0RbsThe resource does not existtcomments No file at %rRYs,You are not permitted to view this file (%s)R7swsgi.file_wrappertsize(R+R RORRRRZtpathtexistsRVt HTTPNotFoundR_tIOErrortOSErrort HTTPForbiddenRBRR.RR tseekR t BLOCK_SIZEt _FileIter( RR/R0tis_headR2tfiletetretvalRORt file_wrapper((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR.Ìs<     N( RQRRRSR RRWtFalseRR.(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR©s   RncBs2eZddd„Zd„Zd„Zd„ZRS(cCs&||_||_|pt|_dS(N(RpReRmt block_size(RRpRuRe((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRñs  cCs|S(N((R((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyt__iter__öscCsp|i}|idj o0||ijo |i}n|i|8_n|ii|ƒ}|p t‚n|S(N(RuReR RpR`t StopIteration(Rt chunk_sizetdata((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pytnextùs   cCs|iiƒdS(N(RpRa(R((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRasN(RQRRR RRvRzRa(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRnïs  cBs&eZdZd„ZeZd„ZRS(s Returns an application that dispatches requests to corresponding FileApps based on PATH_INFO. FileApp instances are cached. This app makes sure not to serve any files that are not in a subdirectory. To customize FileApp creation override ``DirectoryApp.make_fileapp`` cCsqtii|ƒ|_|iitiiƒp|itii7_ntii|iƒpt‚h|_dS(N(RZRftabspathtendswithtseptisdirR t cached_apps(RRf((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRs cCsÉ|d}|ii|ƒ}|djo“tii|i|idƒƒ}tii|ƒi|iƒp t ƒ}q¼tii |ƒo |i |ƒ}||i|/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR3s  ! (RQRRRSRRR†R3(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyRs cBs)eZdZd„Zd„Zd„ZRS(s§ Returns an application that serves up a DataApp for items requested in a given zip or tar archive. Constructor Arguments: ``filepath`` the path to the archive being served ``cache_control()`` This method provides validated construction of the ``Cache-Control`` header as well as providing for automated filling out of the ``EXPIRES`` header for HTTP/1.0 clients. cCs‡ti|ƒoti|dƒ|_n:ti|ƒoti|dƒ|_ntd|ƒ‚d|_ t i ƒ|_ h|_ dS(Ntrs"filepath '%s' is not a zip or tar ( tzipfilet is_zipfiletZipFiletarchivettarfilet is_tarfilet TarFileCompatR R R R#Rtcache(Rtfilepath((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR7s cKs#ti|i|pd|_|S(N(R R!RR R (RR((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR"Bsc Csy|iddƒ}|idƒo|d}n|ii|ƒ}|o|||ƒSy|ii|ƒ}Wn0tj o$td|ƒ}|i||ƒSX|ii dƒo!td|ƒ}|i||ƒSt i |iƒ\}}|dj ot dd|d|ƒ} nt dd|ƒ} | i|ii|ƒti|id ƒƒ| |i|<|i| _| ||ƒS( NR€R7Ris(The file requested, '%s', was not found.s$Path requested, '%s', is not a file.RTRUi(iii(R.R„R‘RtgetinfotKeyErrorRhRBRVR|RXRWR RRR`R#tmktimet date_timeR ( RR/R0Rft applicationtinfoR2RTRURˆ((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR3Fs0    (RQRRRSRR"R3(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyR's i(RSRZR#RXRŠRŽtpaste.httpexceptionstpaste.httpheadersR^Rmt__all__tobjectRRRnRR(((s>/opt/alt/python37/lib/python3.7/site-packages/paste/fileapp.pyt s<  ”F