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
commitf60c4cba2314dc8d4a00944e1969cff78bf10d05 (patch)
treec605797e8de43c52ce9124984fdeb08b74200bc4 /flatpages/views.py
parent9e5e636d0dc50c8c3daf10fb05d3806126693067 (diff)
downloadtroggle-f60c4cba2314dc8d4a00944e1969cff78bf10d05.tar.gz
troggle-f60c4cba2314dc8d4a00944e1969cff78bf10d05.tar.bz2
troggle-f60c4cba2314dc8d4a00944e1969cff78bf10d05.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