ó aòNc@sdZddlZddgZdefd„ƒ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 simples200 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|ƒ}|sPn|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"%d bytess
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 R RRR(((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyRscCstƒS(N(R(t global_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   ( R Rt__all__tobjectRRRRR (((sE/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt s   *