Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente <mabente@paraguayeduca.org>2010-07-06 19:39:48 (GMT)
committer Martin Abente <mabente@paraguayeduca.org>2010-08-23 18:27:30 (GMT)
commitef3a35b7595c543f6d8b6a54e60e6c21e2a37f8f (patch)
tree3eae0d41b21a5b25452cf7637a2088bf54e88985
parent20316bccb697f144d823a735f0fe96aabb8cdbb7 (diff)
Delete profile data only when erased #2074
Profile data should be deleted _only_ when the user explicitly erases the activity from the activities list. Signed-off-by: Martin Abente <mabente@paraguayeduca.org>
-rw-r--r--src/jarabe/desktop/activitieslist.py2
-rw-r--r--src/jarabe/model/bundleregistry.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
index e14d0f7..c14d31e 100644
--- a/src/jarabe/desktop/activitieslist.py
+++ b/src/jarabe/desktop/activitieslist.py
@@ -371,7 +371,7 @@ class ActivitiesList(gtk.VBox):
if response_id == gtk.RESPONSE_OK:
registry = bundleregistry.get_registry()
bundle = registry.get_bundle(bundle_id)
- registry.uninstall(bundle)
+ registry.uninstall(bundle, delete_profile=True)
class ActivityListPalette(ActivityPalette):
__gtype_name__ = 'SugarActivityListPalette'
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 858655f..b96de86 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -386,7 +386,7 @@ class BundleRegistry(gobject.GObject):
elif not self.add_bundle(install_path):
raise RegistrationException
- def uninstall(self, bundle, force=False):
+ def uninstall(self, bundle, force=False, delete_profile=False):
# TODO treat ContentBundle in special way
# needs rethinking while fixing ContentBundle support
if isinstance(bundle, ContentBundle) or \
@@ -409,7 +409,7 @@ class BundleRegistry(gobject.GObject):
install_path = act.get_path()
- bundle.uninstall(install_path, force)
+ bundle.uninstall(install_path, force, delete_profile)
if not self.remove_bundle(install_path):
raise RegistrationException