diff options
author | chema <chema@chema-laptop.(none)> | 2008-05-27 19:59:47 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-05-27 20:14:56 (GMT) |
commit | e459206438240e9ab5ceed2a06bfca8caa83438e (patch) | |
tree | a29e6fb70d833d33a0daa61f9146ac342ca9d0e1 /src/sugar | |
parent | 73dc65b2593435d162022296c0376123101a86b6 (diff) |
Enable journal to do open-with for activity bundles.
Diffstat (limited to 'src/sugar')
-rw-r--r-- | src/sugar/datastore/datastore.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sugar/datastore/datastore.py b/src/sugar/datastore/datastore.py index fda29b0..b7792f4 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) |