diff MoinMoin/wikiutil.py @ 3093:0f64646b9deb

adding some .ext -> mimetype mappings missing on some systems (like Mac OS X)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Jan 2008 01:09:54 +0100
parents 5471f4a009dc
children c6e39279f83b
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sat Jan 05 02:42:31 2008 +0100
+++ b/MoinMoin/wikiutil.py	Fri Jan 18 01:09:54 2008 +0100
@@ -925,6 +925,10 @@
  '.ots': 'application/vnd.oasis.opendocument.spreadsheet-template',
  '.otp': 'application/vnd.oasis.opendocument.presentation-template',
  '.otg': 'application/vnd.oasis.opendocument.graphics-template',
+ # some systems (like Mac OS X) don't have some of these:
+ '.patch': 'text/x-diff',
+ '.diff': 'text/x-diff',
+ '.py': 'text/x-python',
 }
 [mimetypes.add_type(mimetype, ext, True) for ext, mimetype in MIMETYPES_MORE.items()]