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

File 0001-Journal-xobundle-removal-wont-remove-installed-one.patch, 1.1 KB (added by tch, 11 years ago)
  • src/jarabe/journal/palettes.py

    From dcafb30f3e96eaf0beaa41277d49f1bf8f0c3587 Mon Sep 17 00:00:00 2001
    From: Martin Abente <mabente@paraguayeduca.org>
    Date: Wed, 28 Jul 2010 17:53:30 -0400
    Subject: [PATCH] Journal xobundle removal wont remove installed one
    Organization: Paraguay Educa
    
    Journal Xo bundles removal also removes the installed activity. There
    are many scenarios where this behavior is it not desired. Therefore it
    needs to be changed.
    ---
     src/jarabe/journal/palettes.py |    5 -----
     1 files changed, 0 insertions(+), 5 deletions(-)
    
    diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py
    index 0e7702d..7c3e5ff 100644
    a b class ObjectPalette(Palette): 
    128128        self._temp_file_path = None
    129129
    130130    def __erase_activate_cb(self, menu_item):
    131         registry = bundleregistry.get_registry()
    132 
    133         bundle = misc.get_bundle(self._metadata)
    134         if bundle is not None and registry.is_installed(bundle):
    135             registry.uninstall(bundle)
    136131        model.delete(self._metadata['uid'])
    137132
    138133    def __detail_activate_cb(self, menu_item):