From e459206438240e9ab5ceed2a06bfca8caa83438e Mon Sep 17 00:00:00 2001 From: chema Date: Tue, 27 May 2008 13:59:47 -0600 Subject: [PATCH] Enable journal to do open-with for activity bundles. --- src/sugar/datastore/datastore.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sugar/datastore/datastore.py b/src/sugar/datastore/datastore.py index fda29b0e..b7792f43 100644 --- a/src/sugar/datastore/datastore.py +++ b/src/sugar/datastore/datastore.py @@ -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)