Mercurial > moin > 1.9
changeset 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 | e3846a8e4bd5 |
children | 92e5cf67842f |
files | MoinMoin/wikiutil.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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()]