[shared] List of MIME types completed.

This commit is contained in:
Gaetan Delannay 2014-12-02 00:19:01 +01:00
parent fa9ef1b76c
commit 2ef3cdb006

View file

@ -6,6 +6,7 @@ import os.path
appyPath = os.path.realpath(os.path.dirname(appy.__file__)) appyPath = os.path.realpath(os.path.dirname(appy.__file__))
od = 'application/vnd.oasis.opendocument' od = 'application/vnd.oasis.opendocument'
ms = 'application/vnd.openxmlformats-officedocument' ms = 'application/vnd.openxmlformats-officedocument'
ms2 = 'application/vnd.ms'
mimeTypes = {'odt': '%s.text' % od, mimeTypes = {'odt': '%s.text' % od,
'ods': '%s.spreadsheet' % od, 'ods': '%s.spreadsheet' % od,
@ -23,11 +24,14 @@ mimeTypesExts = {
'image/jpeg': 'jpg', 'image/jpeg': 'jpg',
'image/pjpeg': 'jpg', 'image/pjpeg': 'jpg',
'image/gif': 'gif', 'image/gif': 'gif',
'application/vnd.ms-excel': 'xls',
'application/vnd.ms-powerpoint': 'ppt',
'%s.wordprocessingml.document' % ms: 'docx', '%s.wordprocessingml.document' % ms: 'docx',
'%s.spreadsheetml.sheet' % ms: 'xlsx', '%s.spreadsheetml.sheet' % ms: 'xlsx',
'%s.presentationml.presentation' % ms: 'pptx', '%s.presentationml.presentation' % ms: 'pptx',
'%s-excel' % ms2: 'xls',
'%s-powerpoint' % ms2: 'ppt',
'%s-word.document.macroEnabled.12' % ms2: 'docm',
'%s-excel.sheet.macroEnabled.12' % ms2: 'xlsm',
'%s-powerpoint.presentation.macroEnabled.12' % ms2: 'pptm'
} }
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------