diff options
| author | ianb <devnull@localhost> | 2006-10-20 19:02:27 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-10-20 19:02:27 +0000 |
| commit | 342e1dba47ffba616b0b578a70412a867c6d89a7 (patch) | |
| tree | 98d02bc6f18873ce3b93de5b187b995f7037d1ad /paste/debug | |
| parent | 07b918fcc6744b473e66d63e1e3e99c8013ecaf2 (diff) | |
| download | paste-342e1dba47ffba616b0b578a70412a867c6d89a7.tar.gz | |
Moved wdg_validate to new entry point
Diffstat (limited to 'paste/debug')
| -rw-r--r-- | paste/debug/wdg_validate.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/paste/debug/wdg_validate.py b/paste/debug/wdg_validate.py index 18b0f35..33de61a 100644 --- a/paste/debug/wdg_validate.py +++ b/paste/debug/wdg_validate.py @@ -101,3 +101,16 @@ class WDGValidateMiddleware(object): + html_page[match.end():]] else: return [html_page + add_text] + +def make_wdg_validate_middleware( + app, global_conf, wdg_path='validate'): + """ + Wraps the application in the WDG validator from + http://www.htmlhelp.com/tools/validator/ + + Validation errors are appended to the text of each page. + You can configure this by giving the path to the validate + executable (by default picked up from $PATH) + """ + return WDGValidateMiddleware( + app, global_conf, wdg_path=wdg_path) |
