Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit

master
Marco Pesenti Gritti 16 years ago
commit 5a0f575718

@ -27,8 +27,6 @@ import os
import gobject
from sugar.datastore import dbus_helpers
from sugar.bundle.contentbundle import ContentBundle
from sugar.bundle.activitybundle import ActivityBundle
from sugar import mime
class DSMetadata(gobject.GObject):
@ -118,16 +116,6 @@ class DSObject(object):
file_path = property(get_file_path, set_file_path)
def is_activity_bundle(self):
return self.metadata['mime_type'] in \
[ActivityBundle.MIME_TYPE, ActivityBundle.DEPRECATED_MIME_TYPE]
def is_content_bundle(self):
return self.metadata['mime_type'] == ContentBundle.MIME_TYPE
def is_bundle(self):
return self.is_activity_bundle() or self.is_content_bundle()
def destroy(self):
if self._destroyed:
logging.warning('This DSObject has already been destroyed!.')

Loading…
Cancel
Save