Ticket #1512: 0001-Journal-xobundle-removal-wont-remove-installed-one.patch.2

File 0001-Journal-xobundle-removal-wont-remove-installed-one.patch.2, 1.1 KB (added by tch, 11 years ago)
Line 
1From dcafb30f3e96eaf0beaa41277d49f1bf8f0c3587 Mon Sep 17 00:00:00 2001
2From: Martin Abente <mabente@paraguayeduca.org>
3Date: Wed, 28 Jul 2010 17:53:30 -0400
4Subject: [PATCH] Journal xobundle removal wont remove installed one #1512
5Organization: Paraguay Educa
6
7Journal Xo bundles removal also removes the installed activity. There
8are many scenarios where this behavior is it not desired. Therefore it
9needs to be changed.
10---
11 src/jarabe/journal/palettes.py |    5 -----
12 1 files changed, 0 insertions(+), 5 deletions(-)
13
14diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py
15index 0e7702d..7c3e5ff 100644
16--- a/src/jarabe/journal/palettes.py
17+++ b/src/jarabe/journal/palettes.py
18@@ -128,11 +128,6 @@ class ObjectPalette(Palette):
19         self._temp_file_path = None
20 
21     def __erase_activate_cb(self, menu_item):
22-        registry = bundleregistry.get_registry()
23-
24-        bundle = misc.get_bundle(self._metadata)
25-        if bundle is not None and registry.is_installed(bundle):
26-            registry.uninstall(bundle)
27         model.delete(self._metadata['uid'])
28 
29     def __detail_activate_cb(self, menu_item):
30--
311.6.0.4
32