Enable journal to do open-with for activity bundles.

This commit is contained in:
chema 2008-05-27 13:59:47 -06:00 committed by Marco Pesenti Gritti
parent 73dc65b259
commit e459206438

View File

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