Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/journalactivity.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-01-04 10:47:49 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-01-04 10:47:49 (GMT)
commit7143d9c7de17aa12bd6a6de2f857061dcc04f137 (patch)
tree69cd9e48ffb000024e36f21ac2f59d8b3a942efe /src/jarabe/journal/journalactivity.py
parent226fecd53461db6c1188deb80dedd9cc5a05e353 (diff)
#165 Install bundles when they get into the journal
Diffstat (limited to 'src/jarabe/journal/journalactivity.py')
-rw-r--r--src/jarabe/journal/journalactivity.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/jarabe/journal/journalactivity.py b/src/jarabe/journal/journalactivity.py
index a1e28ac..ff73d16 100644
--- a/src/jarabe/journal/journalactivity.py
+++ b/src/jarabe/journal/journalactivity.py
@@ -246,18 +246,18 @@ class JournalActivity(Window):
self._main_toolbox.search_toolbar.set_mount_point(mount_point)
self._main_toolbox.set_current_toolbar(0)
- def __model_created_cb(self, object_id):
- self._check_for_bundle(object_id)
+ def __model_created_cb(self, sender, **kwargs):
+ self._check_for_bundle(kwargs['object_id'])
self._main_toolbox.search_toolbar.refresh_filters()
self._check_available_space()
- def __model_updated_cb(self, object_id):
- self._check_for_bundle(object_id)
+ def __model_updated_cb(self, sender, **kwargs):
+ self._check_for_bundle(kwargs['object_id'])
self._check_available_space()
- def __model_deleted_cb(self, object_id):
+ def __model_deleted_cb(self, sender, **kwargs):
if self.canvas == self._secondary_view and \
- object_id == self._detail_view.props.metadata['uid']:
+ kwargs['object_id'] == self._detail_view.props.metadata['uid']:
self.show_main_view()
def _focus_in_event_cb(self, window, event):
@@ -268,6 +268,10 @@ class JournalActivity(Window):
registry = bundleregistry.get_registry()
metadata = model.get(object_id)
+ if metadata.get('progress', '').isdigit():
+ if int(metadata['progress']) < 100:
+ return
+
bundle = misc.get_bundle(metadata)
if bundle is None:
return