Ñò
ô³Kc @ s£ d Z d d k l Z y d d k Z Wn# e j
o d d k l Z n Xd d k l Z d d k Z d d k
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 `_
i˙˙˙˙( t StringION( t subprocess24( t wsgilibt WDGValidateMiddlewarec B sM e Z d Z e i d e i 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
t validatec C s | | _ | | _ d S( N( t appt wdg_path( t selfR t global_confR ( ( s<