summaryrefslogtreecommitdiffstats
path: root/flatpages/views.py
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2011-07-12 00:57:48 +0100
committerWookey <wookey@wookware.org>2011-07-12 00:57:48 +0100
commitb4b060a962bb9c7883f668fdb5ccc1b993be36c9 (patch)
tree32564bf6305cc375270ade2f934000dda6eb85d5 /flatpages/views.py
parent0a70039dee3b51f9f6c8e3248ebdea5b076df764 (diff)
downloadtroggle-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.py2
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