Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/bundleregistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/model/bundleregistry.py')
-rw-r--r--src/jarabe/model/bundleregistry.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index aa49c72..60b2ab9 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -338,7 +338,7 @@ class BundleRegistry(gobject.GObject):
return True
return False
- def install(self, bundle):
+ def install(self, bundle, uid=None):
activities_path = env.get_user_activities_path()
for installed_bundle in self._bundles:
@@ -350,8 +350,11 @@ class BundleRegistry(gobject.GObject):
self.uninstall(installed_bundle, force=True)
install_dir = env.get_user_activities_path()
- install_path = bundle.install(install_dir)
-
+ if isinstance(bundle, JournalEntryBundle):
+ install_path = bundle.install(install_dir, uid)
+ else:
+ install_path = bundle.install(install_dir)
+
# TODO treat ContentBundle in special way
# needs rethinking while fixing ContentBundle support
if isinstance(bundle, ContentBundle) or \