|
|
@ -155,9 +155,7 @@ class DSObject(object):
|
|
|
|
def resume(self, bundle_id=None):
|
|
|
|
def resume(self, bundle_id=None):
|
|
|
|
from sugar.activity import activityfactory
|
|
|
|
from sugar.activity import activityfactory
|
|
|
|
|
|
|
|
|
|
|
|
if self.is_activity_bundle():
|
|
|
|
if self.is_activity_bundle() and not bundle_id:
|
|
|
|
if bundle_id is not None:
|
|
|
|
|
|
|
|
raise ValueError('Bundle cannot be resumed as an activity.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logging.debug('Creating activity bundle')
|
|
|
|
logging.debug('Creating activity bundle')
|
|
|
|
bundle = ActivityBundle(self.file_path)
|
|
|
|
bundle = ActivityBundle(self.file_path)
|
|
|
|