Test commit
Fix circular import

There is a cirular import loop in sugar:
buddyicon imports buddymenu imports homewindow imports meshview
imports buddyicon.

This patch breaks the loop by moving the homewindow import into the
one method that uses it.
Merge branch 'walterbender-circular-imports'
Use del instead of IconInfo.free

Relace free method call for the proper python del call. IconInfo
does not have a free method.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix "Show in Journal" functionality - Fixes #4777

When one activity want show a object in the journal, should shw the detail view,
but was showing the list view.

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Merge pull request #379 from godiard/fix_4777

Fix "Show in Journal" functionality - Fixes #4777
Fix display of multiple alerts in home view - Fixes #4757

Copy the logic on grphics/window.py to avoid display more than one
alert at the same time.

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Show the Join option in the activity palette in neighborhood - Fixes #4779

The default value when the activity is not configured is 0, not None
Release 0.102.0
Don't let 'Clear Query' override activities preset filters
Don't show 'Clear Query' when the activities preset is active
ObjectChooser: preserve filter type

When the ObjectChooser is called with the filter_type=FILTER_TYPE_MIME_BY_ACTIVITY
the filter_type was replaced by FILTER_TYPE_ACTIVITY.
This patch preserve the value used, if not filter type was selected,
use FILTER_TYPE_ACTIVITY.

Signd-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Fix MetadataLookup signal definition

When The updater is looking up remotely for activity metadata
such as size and icon, the bundle can become unavailable because
of network or server issues.

Then, the MetadataLookup size attribute is never set and remains
as a None, therefore when the lookup is completed it emits the
complete signal sending a NoneType when a int type is expected,
crashing the updater.

This commit fixes the signal definition to allow NoneType values,
because these are actually valid cases.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix missing confirm button in Sugar Backup restore

Restore of a Sugar journal backup provided an Accept radio button but
the Confirm button was missing.

This was caused by not calling the show method on the button.

Reported-by: Niraj Nakrani <niraj@laptop.org.au>
Signed-off-by: James Cameron <quozl@laptop.org>
Fix extra blanks in Sugar Backup restore

The restore warning had an extra blank at the start, and an extra blank
before "my journal."

May impact translations.

Signed-off-by: James Cameron <quozl@laptop.org>
Parse olpc-activity-optional field

To mark an activity as optional in the microformat file, set
this field to 1. Anything different from 1 will be treated as
non-optional, which is the previous behaviour. Thus, this is
backwards compatible.

Extend _UpdateHTMLParser class so it can extract the
new optional field.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Support olpc-activity-optional field in BundleUpdate

Extend BundleUpdate class to support this new field, so other
components of the updater can access this information.

Use this new field in MicroformatUpdater class by passing it
to BundleUpdate initializer.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Filter optional activities in automatic updates

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Do not select optional activities in updater UI

All activities that have not been explicitly marked as optional
will be treated as non-optional. Therefore, these activities will
be selected in UI by default.

This peserves the previous behaviour, thus this is backwards
compatible.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Make ad-hoc autoconnnect optional

Add a gsettings value to determine whether or not
ad-hoc networks should autoconnect.

This value will be ignored if the user explicitly connects
to a ad-hoc network, for the rest of the session. It will be taken
into account again, if the user explicitly disconnect from the
ad-hoc network.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>