diff options
Diffstat (limited to 'src/olpc/datastore/model.py')
-rw-r--r-- | src/olpc/datastore/model.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/olpc/datastore/model.py b/src/olpc/datastore/model.py index a867c2f..14bb4b9 100644 --- a/src/olpc/datastore/model.py +++ b/src/olpc/datastore/model.py @@ -240,6 +240,8 @@ class Content(object): mt = self.get_property('mime_type', None) if mt: ext = mimetypes.guess_extension(mt) + # .ksh is a strange ext for plain text + if ext and ext == '.ksh': ext = '.txt' if ext: return None, ext return None, None |