projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55cabd0
)
converting ENML mimetypes to XML mimetypes
author
Bryan
<btbonval@gmail.com>
Tue, 17 Dec 2013 20:43:33 +0000
(15:43 -0500)
committer
Bryan
<btbonval@gmail.com>
Tue, 17 Dec 2013 20:43:33 +0000
(15:43 -0500)
karmaworld/apps/notes/gdrive.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/gdrive.py
b/karmaworld/apps/notes/gdrive.py
index 79600547c79fbbb4a4c4558cb70508628d504de5..8b1ddab29981638ec204e3a1b0f8d01e8b427e55 100644
(file)
--- a/
karmaworld/apps/notes/gdrive.py
+++ b/
karmaworld/apps/notes/gdrive.py
@@
-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,