403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/paste/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/paste/cascade.pyc
Ñò
•ÊIc@szdZddklZddklZddkZddklZdgZdd„Z	de
fd	„ƒYZd
„ZdS(sZ
Cascades through several applications, so long as applications
return ``404 Not Found``.
iÿÿÿÿ(thttpexceptions(t
convertersN(tStringIOtCascadet404c	KsÎttti|ƒƒ}g}xl|iƒD]^\}}|idƒptd||fƒ‚n|i|d|ƒ}|i||fƒq+W|i	ƒg}|D]\}}||q¢~}t
|d|ƒS(s!
    Entry point for Paste Deploy configuration
    
    Expects configuration like::

        [composit:cascade]
        use = egg:Paste#cascade
        # all start with 'app' and are sorted alphabetically
        app1 = foo
        app2 = bar
        ...
        catch = 404 500 ...
    tappsLBad configuration key %r (=%r); all configuration keys must start with 'app'tglobal_conftcatch(tmaptintRtaslisttitemst
startswitht
ValueErrortget_apptappendtsortR(	tloaderRRt
local_conftappstnametvalueRt_[1]((s1/usr/lib/python2.6/site-packages/paste/cascade.pytmake_cascades

'cBs#eZdZdd„Zd„ZRS(sf
    Passed a list of applications, ``Cascade`` will try each of them
    in turn.  If one returns a status code listed in ``catch`` (by
    default just ``404 Not Found``) then the next application is
    tried.

    If all applications fail, then the last application's failure
    response is used.

    Instances of this class are WSGI applications.
    i”cCsÊ||_h|_g|_x–|D]Ž}t|tƒo t|iddƒdƒ}nt|ti	ƒo|}|i
}nti|ƒ}|}||i|<|ii|ƒq"Wt
|iƒ|_dS(Nii(Rtcatch_codestcatch_exceptionst
isinstancetstrR	tsplittNoneRt
HTTPExceptiontcodet
get_exceptionRttuple(tselftapplicationsRterrortexcR((s1/usr/lib/python2.6/site-packages/paste/cascade.pyt__init__9s			 

c
s?g‰d	‡‡‡fd†}y#t|iddƒpdƒ}Wntj
o
d}nX|djo÷t}|djp
|djo°tiƒ}|djo|i|diƒƒnl|}xb|djoT|dit	|dƒƒ}|pt
dƒ‚n|i|ƒ|t|ƒ8}qÇW|idƒnt
|di|ƒƒ}||d<nt}x¥ˆid D]–}	|iƒ}
|o|
didƒng‰yG|	|
|ƒ}ˆp|St|dƒot|ƒ|iƒnWquˆij
o	}quXquW|o|didƒnˆid|ˆƒS(
s,
        WSGI application interface
        csNt|iddƒdƒ}|ˆijoˆidƒtSˆ|||ƒS(Nii(R	RRRRt_consuming_writer(tstatustheaderstexc_infoR(tfailedR"tstart_response(s1/usr/lib/python2.6/site-packages/paste/cascade.pytrepl_start_responseOs

tCONTENT_LENGTHiis
wsgi.inputsRequest body truncatediÿÿÿÿtcloseN(RR	tgetR
tTruettempfilet
TemporaryFiletwritetreadtmintIOErrortlentseekRtFalseRtcopythasattrtlistR/R(
R"tenvironR,R-tlengthtcopy_wsgi_inputtftcopy_lentchunkRtenviron_copytvte((R,R"R+s1/usr/lib/python2.6/site-packages/paste/cascade.pyt__call__JsT#




	(i”(t__name__t
__module__t__doc__R&RG(((s1/usr/lib/python2.6/site-packages/paste/cascade.pyR+scCsdS(N((ts((s1/usr/lib/python2.6/site-packages/paste/cascade.pyR'„s(
RJtpasteRt
paste.utilRR2t	cStringIORt__all__RtobjectRR'(((s1/usr/lib/python2.6/site-packages/paste/cascade.pyt<module>s	Y

Youez - 2016 - github.com/yon3zu
LinuXploit