diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-07-05 09:35:36 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-07-05 09:37:51 (GMT) |
commit | 408b601c0ef7b4bdbdb4fc5667900f08731c6817 (patch) | |
tree | 17314e98400db3155c85ec81f9552630bf757e90 /sugar/objects | |
parent | 060b740983ed36757df91eb20553540acf6067a2 (diff) |
Set ObjectType.mime_types.
Diffstat (limited to 'sugar/objects')
-rw-r--r-- | sugar/objects/objecttype.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sugar/objects/objecttype.py b/sugar/objects/objecttype.py index c0ece9b..dd2da54 100644 --- a/sugar/objects/objecttype.py +++ b/sugar/objects/objecttype.py @@ -25,16 +25,17 @@ def _object_type_from_dict(info_dict): if info_dict: return ObjectType(info_dict['type_id'], info_dict['name'], - info_dict['icon']) + info_dict['icon'], + info_dict['mime_types']) else: return None class ObjectType(object): - def __init__(self, type_id, name, icon): + def __init__(self, type_id, name, icon, mime_types): self.type_id = type_id self.name = name self.icon = icon - self.mime_types = [] + self.mime_types = mime_types class ObjectTypeRegistry(object): def __init__(self): |