2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 02:57:17 +00:00

Add odt and ods mime types to our list.

Maybe this should just be read in from the real list...
This commit is contained in:
Wookey
2011-07-12 00:57:48 +01:00
parent 9e5e636d0d
commit f60c4cba23
3 changed files with 18 additions and 16 deletions

View File

@@ -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