From b9cd6cd6ec1077623be6bf600ef0993d15425473 Mon Sep 17 00:00:00 2001 From: Oleg Marshev Date: Mon, 5 May 2014 23:54:55 +0300 Subject: [PATCH] Add sjson and srt to type map. --- common/lib/xmodule/xmodule/modulestore/xml_importer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/lib/xmodule/xmodule/modulestore/xml_importer.py b/common/lib/xmodule/xmodule/modulestore/xml_importer.py index 2beeab75a5..3c5db7459d 100644 --- a/common/lib/xmodule/xmodule/modulestore/xml_importer.py +++ b/common/lib/xmodule/xmodule/modulestore/xml_importer.py @@ -35,6 +35,9 @@ def import_static_content( policy = {} verbose = True + + mimetypes.add_type('application/octet-stream', '.sjson') + mimetypes.add_type('application/octet-stream', '.srt') mimetypes_list = mimetypes.types_map.values() for dirname, _, filenames in os.walk(static_dir):