converting ENML mimetypes to XML mimetypes
authorBryan <btbonval@gmail.com>
Tue, 17 Dec 2013 20:43:33 +0000 (15:43 -0500)
committerBryan <btbonval@gmail.com>
Tue, 17 Dec 2013 20:43:33 +0000 (15:43 -0500)
karmaworld/apps/notes/gdrive.py

index 79600547c79fbbb4a4c4558cb70508628d504de5..8b1ddab29981638ec204e3a1b0f8d01e8b427e55 100644 (file)
@@ -174,6 +174,7 @@ def convert_with_google_drive(note):
     (file_type, encoding) = mimetypes.guess_type(note.note_file.path)
 
 
+    if file_type == 'text/enml': file_type = 'text/xml'
 
     if file_type != None:
         media = MediaFileUpload(note.note_file.path, mimetype=file_type,