diff website/issues/detectors/no_texthtml.py @ 4566:b8119ba37707

Merge branch 'website'
author Eric S. Raymond <esr@thyrsus.com>
date Sun, 13 Nov 2011 11:18:42 -0500
parents c2d0d3e9099d
children 0942fe89e82e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/website/issues/detectors/no_texthtml.py	Sun Nov 13 11:18:42 2011 -0500
@@ -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)

Roundup Issue Tracker: http://roundup-tracker.org/