Applied patch from Frederic Peters for bug https://bugs.launchpad.net/appy/+bug/485815 and another bugfix.

This commit is contained in:
Gaetan Delannay 2010-03-25 16:34:37 +01:00
parent 1227f0ed5e
commit 3a7b5be03b
6 changed files with 78 additions and 24 deletions

View file

@ -7,7 +7,17 @@ appyPath = os.path.realpath(os.path.dirname(appy.__file__))
mimeTypes = {'odt': 'application/vnd.oasis.opendocument.text',
'doc': 'application/msword',
'rtf': 'text/rtf',
'pdf': 'application/pdf'}
'pdf': 'application/pdf'
}
mimeTypesExts = {
'application/vnd.oasis.opendocument.text': 'odt',
'application/msword' : 'doc',
'text/rtf' : 'rtf',
'application/pdf' : 'pdf',
'image/png' : 'png',
'image/jpeg' : 'jpg',
'image/gif' : 'gif'
}
# ------------------------------------------------------------------------------
class UnmarshalledObject: