Revert "Merge type definitions from the old registry."
This reverts commit 57e9789b8a
.
This commit is contained in:
parent
57e9789b8a
commit
c74a629080
@ -25,30 +25,14 @@ _text_type = {
|
||||
'type_id' : 'Text',
|
||||
'name' : _('Text'),
|
||||
'icon' : 'theme:object-text',
|
||||
'formats' : [ 'text/plain',
|
||||
'application/pdf',
|
||||
'application/x-pdf',
|
||||
'application/msword',
|
||||
'application/rtf',
|
||||
'text/rtf',
|
||||
'application/x-abiword',
|
||||
'application/vnd.oasis.opendocument.text']
|
||||
'formats' : [ 'text/plain', 'application/pdf' ]
|
||||
}
|
||||
|
||||
_image_type = {
|
||||
'type_id' : 'Image',
|
||||
'name' : _('Image'),
|
||||
'icon' : 'theme:object-image',
|
||||
'formats' : [ 'image/jpeg',
|
||||
'image/gif',
|
||||
'image/png',
|
||||
'image/tiff' ]
|
||||
}
|
||||
|
||||
_other_type = {
|
||||
'type_id' : 'Other',
|
||||
'name' : _('Other'),
|
||||
'formats' : []
|
||||
'formats' : [ 'image/jpeg', 'image/gif', 'image/png' ]
|
||||
}
|
||||
|
||||
class _RootNode(_TypeNode):
|
||||
@ -77,10 +61,8 @@ class _TypeNode(list):
|
||||
class TypeRegistry(object):
|
||||
def __init__(self):
|
||||
self._tree = _RootNode()
|
||||
|
||||
self._tree.append_primitive(_image_type)
|
||||
self._tree.append_primitive(_text_type)
|
||||
self._tree.append_primitive(_other_type)
|
||||
|
||||
self._bundle_registry = bundleregistry.get_registry()
|
||||
for bundle in self._bundle_registry:
|
||||
|
Loading…
Reference in New Issue
Block a user