[Sugar-devel] [PATCH sugar] Open content bundles on a external device #1748

Simon Schampijer simon at schampijer.de
Wed Mar 2 12:28:31 EST 2011


Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
Acked-By: Simon Schampijer <simon at laptop.org>
---
 src/jarabe/model/bundleregistry.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 84d55c0..63308bb 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -382,6 +382,8 @@ class BundleRegistry(gobject.GObject):
         install_dir = env.get_user_activities_path()
         if isinstance(bundle, JournalEntryBundle):
             install_path = bundle.install(uid)
+        elif isinstance(bundle, ContentBundle):
+            install_path = bundle.install()
         else:
             install_path = bundle.install(install_dir)
 
-- 
1.7.4



More information about the Sugar-devel mailing list