ÿØÿà JFIF ÿþ ÿÛ C ÿÛ C ÿÀ ÿÄ ÿÄ " #QrÿÄ ÿÄ & 1! A"2qQaáÿÚ ? Øy,æ/3JæÝ¹Èß²Ø5êXw²±ÉyR¾I0ó2PI¾IÌÚiMö¯þrìN&"KgX:íµnTJnLK @!-ýùúmë;ºgµ&ó±hw¯Õ@Ü9ñ-ë.²1<yà¹ïQÐUÛ?.¦èûbß±©Ö«Âw*V) `$bØÔëXÖ-ËTÜíGÚ3ð«g §¯JxU/ÂÅv_s(Hÿ @TñJÑãõçn!ÈgfbÓc:él[ðQe9ÀPLbÃãCµm[5¿ç'ªjglåÛí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢S x?"¸¦ùYé¨ÒOÈ q`~~ÚtËU¹CÚêV I1Áß_ÿÙ aNc @ s d Z d d l m Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l Z e a d g Z d e f d YZ d e f d YZ d S( s Middleware that displays everything that is printed inline in application pages. Anything printed during the request will get captured and included on the page. It will usually be included as a floating element in the top right hand corner of the page. If you want to override this you can include a tag in your template where it will be placed::
You might want to include ``style="white-space: normal"``, as all the whitespace will be quoted, and this allows the text to wrap if necessary. i( t StringION( t threadedprint( t wsgilib( t responset PrintDebugMiddlewaret TeeFilec B s e Z d Z d Z RS( c C s | | _ d S( N( t files( t selfR ( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/debug/prints.pyt __init__" s c C sC t | t r t | } n x | j D] } | j | q( Wd S( N( t isinstancet unicodet strR t write( R t vt file( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/debug/prints.pyR % s ( t __name__t __module__R R ( ( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/debug/prints.pyR s c B sl e Z d Z d Z d e e e d Z d Z e j d e j Z e j d e j e j Z d Z RS( sL This middleware captures all the printed statements, and inlines them in HTML pages, so that you can see all the (debug-intended) print statements in the page itself. There are two keys added to the environment to control this: ``environ['paste.printdebug_listeners']`` is a list of functions that will be called everytime something is printed. ``environ['paste.remove_printdebug']`` is a function that, if called, will disable printing of output for that request. If you have ``replace_stdout=True`` then stdout is replaced, not captured. sLog messagesc C s_ | | _ | | _ t | t r@ d d l m } | | } n | | _ | | _ d | _ d S( Ni( t asbool( t appt force_content_typeR t basestringt paste.deploy.convertersR t print_wsgi_errorst replace_stdoutt Nonet _threaded_print_stdout( R R t global_confR R R R ( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/debug/prints.pyR D s c s | j d r | j | | St s8 | j t j k ra t a t j d | j t j | _ n g f d } | | d
%s