Support WPA networks

Copied from dextrose patches. Not tested.
Add hidden networks support in network.py
Support hidden networks and connectivity profiles
add dbus method to update favorites
Stop all the activities if tried to shutdown after 30 seconds

When a activity crashed or can't close properly, like the actual version
of Terminal Sugar can't logout or shutdown the computer.
This patch wait 30 seconds and request all the activities to close.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Proxy cntlm implementation

In schools in South Australia, is configured a proxy authentication
based on MS NTLM. We use the service cntlm to proxy locally to this
remote proxy. To use this, we need have the cntlm rpm installed,
and a profile defined in /etc/sugar_connection_profiles.ini.
Sugar create the configuration file needed by cntlm with the
password hashed by the same service, and restart the service
to take the config.

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Make ad-hoc autoconnnect optional

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

This gconf 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>
Fix EAP settings

There was a typo [], therefore it was sending a list, instead
of a string.

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

KeyValuesDialog does not have a reponse object, as it is a derived
class of Gtk.Dialog, and its creation comes from a complete different
path comparing with other dialogs that has a response object.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix KeyValuesDialog password visibility

Check whether or not the key has a keyword 'password' in it,
and then set visibility to False.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
hidden networks: Show password as asterisks - part of XOS-60
hidden networks: store empty config if no profile or ssid is selected
hidden networks: add a option None to the combo
hidden networks: ignore state when identify the device
hidden networks: set eap parameter as array

As we removed the array in 766faa4f42ee9e17bb8e7f11c492d9f31fa09621
we need add it in the hidden network creation
hidden networks: Show messges to the user on succes or fail

Port patch by Gonzalo Odiard Ported to AU2A Sugar 0.102 branch.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
hidden networks: Add debug log

Ported patch by Gonzalo Odiard to AU2A Sugar 0.102 branch.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Add missing GConf import

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix KeyDialog password visibility - XOS-60

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Fix WPA2-EAP dialog ObjectChooser

The ObjectChooser API changed considerably since the first
version of this dialog code.

Adapt the dialog code to the new API.

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