Handle abw files

This commit is contained in:
Marco Pesenti Gritti 2007-03-22 18:22:37 +01:00
parent 27414754a1
commit 01056ee823
2 changed files with 13 additions and 0 deletions

View File

@ -1 +1,2 @@
application/x-squeak-project pr
application/x-abiword abw

View File

@ -146,6 +146,17 @@ class RtfFileType(TextFileType):
return mime_type in cls._types
matches_mime_type = classmethod(matches_mime_type)
class AbiwordFileType(TextFileType):
_types = set(['application/x-abiword'])
def get_name(self):
return _('Abiword file')
def matches_mime_type(cls, mime_type):
return mime_type in cls._types
matches_mime_type = classmethod(matches_mime_type)
class SqueakProjectFileType(FileType):
_types = set(['application/x-squeak-project'])
@ -212,6 +223,7 @@ class TypeRegistry:
self._types.append(OOTextFileType)
self._types.append(UriFileType)
self._types.append(ImageFileType)
self._types.append(AbiwordFileType)
self._types.append(TextFileType)
self._types.append(SqueakProjectFileType)