[Dextrose] [PATCH 50/54] updater: Only pre-select already installed activities (fixes SL#2822, AU#383)

Jerry Vonau jvonau at shaw.ca
Mon Nov 21 18:42:03 EST 2011


On Tue, 2011-11-08 at 23:17 +0530, Anish Mangal wrote:
> From: Ajay Garg <ajaygargnsit at gmail.com>
> 
> OLPC AU uses the software updater to offer easy installing of optional
> activities. For this to work properly new activities must not be selected by
> default.
> 
> Signed-off-by: Ajay Garg <ajay at sugarlabs.org>
> [adjusted description, split off unrelated bug fixes, set default value]
> Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
> Signed-off-by: Anish Mangal <anish at sugarlabs.org>
> ---


Think this should become a feature for sugar 0.96.

Jerry


>  extensions/cpsection/updater/view.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/extensions/cpsection/updater/view.py b/extensions/cpsection/updater/view.py
> index 559ab8d..891f552 100644
> --- a/extensions/cpsection/updater/view.py
> +++ b/extensions/cpsection/updater/view.py
> @@ -358,10 +358,11 @@ class UpdateListModel(gtk.ListStore):
>          for bundle_update in model.updates:
>              row = [None] * 5
>              row[self.BUNDLE_ID] = bundle_update.bundle.get_bundle_id()
> -            row[self.SELECTED] = True
> +            row[self.SELECTED] = False
>              row[self.ICON_FILE_NAME] = bundle_update.bundle.get_icon()
>  
>              if bundle_update.package_type == 'update':
> +                row[self.SELECTED] = True
>                  details = _('From version %(current)s to %(new)s (Size: %(size)s)')
>                  details = details % \
>                          {'current': bundle_update.bundle.get_activity_version(),




More information about the Dextrose mailing list