Ñò ô†³Kc@sdZddkZddgZdefd„ƒYZdefd„ƒYZd„Zeie_dd ed „Zeie_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((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyt__call__s (t__name__t __module__t__doc__R(((s8/usr/lib/python2.6/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((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyt__init__ s  cCsd}|idƒ}|oÍt|ƒ}x°|djo¢|iod||fGHn|djo|didƒ}n|di|ƒ}|pPn|t|ƒ7}|t|ƒ8}|ioti|iƒ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((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyR%s.      (R R R RRR(((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyRscCstƒS(N(R(t global_conf((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyt make_test_appCsiic Cs;ddkl}tdt|ƒdt|ƒd||ƒƒS(Niÿÿÿÿ(tasboolR R R(tpaste.deploy.convertersRRR(RR R RR((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyt make_slow_appHs   ( R Rt__all__tobjectRRRRR (((s8/usr/lib/python2.6/site-packages/paste/debug/debugapp.pyt s   *