Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/objects
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-11 16:22:30 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-11 16:22:30 (GMT)
commitc74a629080be55ca99b3f41ea954edcc19880c22 (patch)
tree4b3e4f685804207cca26bb17e38333615ded1e9d /sugar/objects
parent57e9789b8a4821e49c499e776a4411a86c244676 (diff)
Revert "Merge type definitions from the old registry."
This reverts commit 57e9789b8a4821e49c499e776a4411a86c244676.
Diffstat (limited to 'sugar/objects')
-rw-r--r--sugar/objects/typeregistry.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/sugar/objects/typeregistry.py b/sugar/objects/typeregistry.py
index e9f8fee..342c50e 100644
--- a/sugar/objects/typeregistry.py
+++ b/sugar/objects/typeregistry.py
@@ -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: