provide additional MIME types for MS Office files

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3962 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-08-22 08:56:28 +00:00
parent dea27d7482
commit b7c8f1dfcf
2 changed files with 16 additions and 2 deletions

View file

@ -218,6 +218,9 @@ application/vnd.ms-artgalry
application/vnd.ms-asf application/vnd.ms-asf
application/vnd.ms-excel xls xlb xlt application/vnd.ms-excel xls xlb xlt
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.ms-excel.template.macroEnabled.12 xltm
application/vnd.ms-word.document.macroEnabled.12 docm
application/vnd.ms-word.template.macroEnabled.12 dotm
application/vnd.ms-lrm application/vnd.ms-lrm
application/vnd.ms-pki.seccat cat application/vnd.ms-pki.seccat cat
application/vnd.ms-pki.stl stl application/vnd.ms-pki.stl stl
@ -251,7 +254,9 @@ application/vnd.oasis.opendocument.text-master odm
application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-template ott
application/vnd.oasis.opendocument.text-web oth application/vnd.oasis.opendocument.text-web oth
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
application/vnd.osa.netdeploy application/vnd.osa.netdeploy
application/vnd.palm application/vnd.palm
application/vnd.pg.format application/vnd.pg.format

View file

@ -1,5 +1,5 @@
# #
# Copyright (c) 2007 Helmut Merz helmutm@cy55.de # Copyright (c) 2010 Helmut Merz helmutm@cy55.de
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -17,7 +17,7 @@
# #
""" """
Some mime types stuff. Some mime types rules, redefined here for more specific assignments.
$Id$ $Id$
""" """
@ -26,11 +26,20 @@ extensions = {
'application/msword': 'doc', 'application/msword': 'doc',
'application/pdf': 'pdf', 'application/pdf': 'pdf',
'application/vnd.ms-excel': 'xls', 'application/vnd.ms-excel': 'xls',
'application/vnd.ms-excel.sheet.macroEnabled.12': 'xlsm',
'application/vnd.ms-excel.template.macroEnabled.12': 'xltm',
'application/vnd.ms-powerpoint': 'ppt', 'application/vnd.ms-powerpoint': 'ppt',
'application/vnd.ms-word.document.macroEnabled.12': 'docm',
'application/vnd.ms-word.template.macroEnabled.12': 'dotm',
'application/vnd.oasis.opendocument.graphics': 'odg', 'application/vnd.oasis.opendocument.graphics': 'odg',
'application/vnd.oasis.opendocument.presentation': 'odp', 'application/vnd.oasis.opendocument.presentation': 'odp',
'application/vnd.oasis.opendocument.spreadsheet': 'ods', 'application/vnd.oasis.opendocument.spreadsheet': 'ods',
'application/vnd.oasis.opendocument.text': 'odt', 'application/vnd.oasis.opendocument.text': 'odt',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'docx',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template': 'dotx',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template': 'xltx',
'application/x-pdf': 'pdf',
'image/gif': 'gif', 'image/gif': 'gif',
'image/jpeg': 'jpg', 'image/jpeg': 'jpg',
'image/png': 'png', 'image/png': 'png',