File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyc
�
a�Nc @ s� d Z d d l Z d d g Z d e f d � � YZ d e f d � � YZ d � Z e j e _ d d e d
� Z e j e _ d S( s5
Various Applications for Debugging/Testing Purposes
i����Nt SimpleApplicationt SlowConsumerc B s e Z d Z d � Z RS( s$
Produces a simple web page
c C s2 d } | d d d t t | � � f g � | g S( Ns <html><body>simple</body></html>s 200 OKs Content-Types text/htmls Content-Length( s Content-Types text/html( t strt len( t selft environt start_responset body( ( 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.pyR s c B s) e Z d Z d d e d � Z d � Z RS( s�
Consumes an upload slowly...
NOTE: This should use the iterator form of ``wsgi.input``,
but it isn't implemented in paste.httpserver.
i i c C s | | _ | | _ t | _ d S( N( t
chunk_sizet delayt Truet progress( R R R
R ( ( sE /opt/alt/python27/lib/python2.7/site-packages/paste/debug/debugapp.pyt __init__ s c C s d } | j d � } | r� t | � } x� | d k r� | j rQ d | | f GHn | d k rs | d j d � } n | d j | � } | s� Pn | t | � 7} | t | � 8} | j r* t j | j � q* q* Wd | } n d } d GH| d d
d t | � f g � | g S( Ni t CONTENT_LENGTHs %s of %s remainingi s
wsgi.inputs"