diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-15 10:19:29 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-15 10:19:29 (GMT) |
commit | c54fb84b28cca54c7d0cb0355b7a21f3cbabfc4d (patch) | |
tree | 6511f37709c0feb2bcd2206a76e51bf66cdc436f /sugar/datastore | |
parent | 43fb1627a7ce9a5e05230699cda7448c44f5c689 (diff) |
#2543: Offer multiple activities for opening clipboard objects.
Diffstat (limited to 'sugar/datastore')
-rw-r--r-- | sugar/datastore/datastore.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py index 5ba994d..0dbe35b 100644 --- a/sugar/datastore/datastore.py +++ b/sugar/datastore/datastore.py @@ -120,6 +120,9 @@ class DSObject(object): def resume(self, service_name=None): if self.is_bundle(): + if service_name is not None: + raise ValueError('Object is a bundle, cannot be resumed as an activity.') + bundle = Bundle(self.file_path) if not bundle.is_installed(): bundle.install() |