• File: debugapp.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyc
  • Date Modified: 08/01/2016 7:39 PM
  • File size: 3.11 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

aNc@sdZddlZddgZdefdYZdefdYZdZeje_dd	ed
Zeje_dS(s5
Various Applications for Debugging/Testing Purposes
iNtSimpleApplicationtSlowConsumercBseZdZdZRS(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)eZdZddedZdZRS(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}|rt|}x|dkr|jrQd||fGHn|dkrs|djd}n|dj|}|sPn|t|7}|t|8}|jr*tj|jq*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.pyRscCstS(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
*