%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/ |
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/debug/wdg_validate.pyo |
� |��Wc @ sy d Z d d l m Z d d l Z d d l m Z d d l Z d d l Z d g Z d e f d � � YZ d d � Z d S( s� Middleware that tests the validity of all generated HTML using the `WDG HTML Validator <http://www.htmlhelp.com/tools/validator/>`_ i����( t StringION( t header_valuet WDGValidateMiddlewarec B sM e Z d Z e j d e j � Z d d d � Z d � Z d � Z d � Z RS( sb Middleware that checks HTML and appends messages about the validity of the HTML. Uses: http://www.htmlhelp.com/tools/validator/ -- interacts with the command line client. Use the configuration ``wdg_path`` to override the path (default: looks for ``validate`` in $PATH). To install, in your web context's __init__.py:: def urlparser_wrap(environ, start_response, app): return wdg_validate.WDGValidateMiddleware(app)( environ, start_response) Or in your configuration:: middleware.append('paste.wdg_validate.WDGValidateMiddleware') s </body>t validatec C s | | _ | | _ d S( N( t appt wdg_path( t selfR t global_confR ( ( sI /opt/alt/python27/lib/python2.7/site-packages/paste/debug/wdg_validate.pyt __init__% s c s� t � � g � d � � � f d � } | j | | � } z"