#2543: Offer multiple activities for opening clipboard objects.

This commit is contained in:
Tomeu Vizoso
2007-08-15 12:19:29 +02:00
parent 43fb1627a7
commit c54fb84b28
6 changed files with 68 additions and 20 deletions
+3
View File
@@ -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()