Attachments you submit will be routed for moderation. If you have an account, please
log in first.
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, 3 years ago)
|
|
|
| Line | |
|---|
| 1 | From dcafb30f3e96eaf0beaa41277d49f1bf8f0c3587 Mon Sep 17 00:00:00 2001 |
|---|
| 2 | From: Martin Abente <mabente@paraguayeduca.org> |
|---|
| 3 | Date: Wed, 28 Jul 2010 17:53:30 -0400 |
|---|
| 4 | Subject: [PATCH] Journal xobundle removal wont remove installed one #1512 |
|---|
| 5 | Organization: Paraguay Educa |
|---|
| 6 | |
|---|
| 7 | Journal Xo bundles removal also removes the installed activity. There |
|---|
| 8 | are many scenarios where this behavior is it not desired. Therefore it |
|---|
| 9 | needs to be changed. |
|---|
| 10 | --- |
|---|
| 11 | src/jarabe/journal/palettes.py | 5 ----- |
|---|
| 12 | 1 files changed, 0 insertions(+), 5 deletions(-) |
|---|
| 13 | |
|---|
| 14 | diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py |
|---|
| 15 | index 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 | -- |
|---|
| 31 | 1.6.0.4 |
|---|
| 32 | |
|---|
Download in other formats: