[Dextrose] [PATCH 4/5][dextrose2][sugar] Dont store activity_id in bundle entry

Martin Abente martin.abente.lahaye at gmail.com
Tue Apr 19 17:21:27 EDT 2011


In older sugar behaviour, installed activities would be removed
when their bundles were removed from journal. That behaviour
is not present anymore either in dextrose or upstream.

Therefore, I see no reason to modifiy the bundle metadata
to add the activity_id anymore. I could not detect how, but 
this operation caused to corrupt xo bundles metadata when
these were created outside journal logic, i.e using dbus
datastore interface.

Fixes #2610

---
 src/jarabe/journal/journalactivity.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/jarabe/journal/journalactivity.py b/src/jarabe/journal/journalactivity.py
index 916db7c..52b7751 100644
--- a/src/jarabe/journal/journalactivity.py
+++ b/src/jarabe/journal/journalactivity.py
@@ -309,11 +309,7 @@ class JournalActivity(JournalWindow):
                         bundle.get_path())
             return
 
-        def install_cb():
-            metadata['bundle_id'] = bundle.get_bundle_id()
-            model.write(metadata)
-
-        misc.install_activity(bundle, install_cb)
+        misc.install_activity(bundle)
 
     def search_grab_focus(self):
         search_toolbar = self._main_toolbox.search_toolbar
-- 
1.7.4.4



More information about the Dextrose mailing list