Mercurial > p > roundup > code
diff website/issues/detectors/no_texthtml.py @ 4024:c2d0d3e9099d website
svn repository setup
| author | Stefan Seefeld <stefan@users.sourceforge.net> |
|---|---|
| date | Fri, 06 Feb 2009 13:16:31 +0000 |
| parents | |
| children | 0942fe89e82e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/website/issues/detectors/no_texthtml.py Fri Feb 06 13:16:31 2009 +0000 @@ -0,0 +1,9 @@ + +def audit_html_files(db, cl, nodeid, newvalues): + if newvalues.has_key('type') and newvalues['type'] == 'text/html': + newvalues['type'] = 'text/plain' + + +def init(db): + db.file.audit('set', audit_html_files) + db.file.audit('create', audit_html_files)
