[sugar] [PATCH] Allow "open with" for activity bundles
Jameson "Chema" Quinn
jquinn at cs.oberlin.edu
Thu Apr 10 11:06:27 EDT 2008
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index 334c866..c1ce64c 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -156,9 +156,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('Object is a 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080410/02204da9/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openwith.patch
Type: text/x-diff
Size: 645 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080410/02204da9/attachment.patch
More information about the Sugar
mailing list