Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/datastore/datastore.py
diff options
context:
space:
mode:
authorDan Winship <dwinship@redhat.com>2007-09-06 20:24:44 (GMT)
committer Dan Winship <dwinship@redhat.com>2007-09-07 17:31:45 (GMT)
commit7b760686a7ee0850983e5a33f063a9952b688af6 (patch)
tree16496d4b83b5c4267e9d4e91f09845dda38d5de5 /sugar/datastore/datastore.py
parent9858a190fdbb5963125849111588a61c22bc7d7f (diff)
Add support for content bundles
Diffstat (limited to 'sugar/datastore/datastore.py')
-rw-r--r--sugar/datastore/datastore.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index eef8499..6409a8a 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -26,6 +26,7 @@ from sugar import activity
from sugar.activity.bundle import Bundle
from sugar.activity import activityfactory
from sugar.activity.activityhandle import ActivityHandle
+from sugar.bundle.contentbundle import ContentBundle
class DSMetadata(gobject.GObject):
__gsignals__ = {
@@ -118,6 +119,10 @@ class DSObject(object):
return activities
+ def is_content_bundle(self):
+ return self.metadata['mime_type'] == ContentBundle.MIME_TYPE
+
+ # FIXME: should become is_activity_bundle()
def is_bundle(self):
return self.metadata['mime_type'] in ['application/vnd.olpc-x-sugar',
'application/vnd.olpc-sugar']