Handle abw files
This commit is contained in:
		
							parent
							
								
									27414754a1
								
							
						
					
					
						commit
						01056ee823
					
				@ -1 +1,2 @@
 | 
				
			|||||||
application/x-squeak-project	pr
 | 
					application/x-squeak-project	pr
 | 
				
			||||||
 | 
					application/x-abiword		abw
 | 
				
			||||||
 | 
				
			|||||||
@ -146,6 +146,17 @@ class RtfFileType(TextFileType):
 | 
				
			|||||||
        return mime_type in cls._types
 | 
					        return mime_type in cls._types
 | 
				
			||||||
    matches_mime_type = classmethod(matches_mime_type)
 | 
					    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):
 | 
					class SqueakProjectFileType(FileType):
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    _types = set(['application/x-squeak-project'])
 | 
					    _types = set(['application/x-squeak-project'])
 | 
				
			||||||
@ -212,6 +223,7 @@ class TypeRegistry:
 | 
				
			|||||||
        self._types.append(OOTextFileType)
 | 
					        self._types.append(OOTextFileType)
 | 
				
			||||||
        self._types.append(UriFileType)
 | 
					        self._types.append(UriFileType)
 | 
				
			||||||
        self._types.append(ImageFileType)
 | 
					        self._types.append(ImageFileType)
 | 
				
			||||||
 | 
					        self._types.append(AbiwordFileType)
 | 
				
			||||||
        self._types.append(TextFileType)
 | 
					        self._types.append(TextFileType)
 | 
				
			||||||
        self._types.append(SqueakProjectFileType)
 | 
					        self._types.append(SqueakProjectFileType)
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user