diff options
author | Wookey <wookey@wookware.org> | 2011-07-12 00:57:48 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2011-07-12 00:57:48 +0100 |
commit | b4b060a962bb9c7883f668fdb5ccc1b993be36c9 (patch) | |
tree | 32564bf6305cc375270ade2f934000dda6eb85d5 /flatpages/views.py | |
parent | 0a70039dee3b51f9f6c8e3248ebdea5b076df764 (diff) | |
download | troggle-b4b060a962bb9c7883f668fdb5ccc1b993be36c9.tar.gz troggle-b4b060a962bb9c7883f668fdb5ccc1b993be36c9.tar.bz2 troggle-b4b060a962bb9c7883f668fdb5ccc1b993be36c9.zip |
Add odt and ods mime types to our list.
Maybe this should just be read in from the real list...
Diffstat (limited to 'flatpages/views.py')
-rw-r--r-- | flatpages/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/flatpages/views.py b/flatpages/views.py index 11cb457..e9db223 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -84,6 +84,8 @@ def getmimetype(path): if path.endswith(".3d"): return "application/x-survex-3d" if path.endswith(".pos"): return "application/x-survex-pos" if path.endswith(".err"): return "application/x-survex-err" + if path.endswith(".odt"): return "application/vnd.oasis.opendocument.text" + if path.endswith(".ods"): return "application/vnd.oasis.opendocument.spreadsheet" return "" @login_required_if_public |