Move the DEFAULT values to the GENERAL section
commit9840fc2d98cd6e4017974813039532e9d30e1407
authorSean Robinson <robinson@tuxfamily.org>
Sat, 26 Apr 2014 21:57:58 +0000 (26 14:57 -0700)
committerSean Robinson <robinson@tuxfamily.org>
Sat, 26 Apr 2014 21:57:58 +0000 (26 14:57 -0700)
tree9dfe28553b27ce5b402510d4349adb86b9048312
parentc46e0cf485f959d287cd920071c4f3140ec7e10d
Move the DEFAULT values to the GENERAL section

The DEFAULT section is meant to hold values that are fallbacks for
other sections.  That is, the following configuration:

[DEFAULT]
interface = wlan0
[DHCP]
command = dhcpcd

will return 'wlan0' when get()ing 'interface' for both the DEFAULT and
DHCP sections.  This causes some duplication of value bugs when
duplicating a ConfigParser (or subclass).  As an example, copying the
above configuration will have the following result:

[DEFAULT]
interface = wlan0
[DHCP]
command = dhcpcd
interface = wlan0

Moving the DEFAULT values to the GENERAL section fixes this problem, but
causes others which will need to be fixed.

Signed-off-by: Sean Robinson <robinson@tuxfamily.org>
test/data/wifi-radar-test.conf
test/unit/config.py
wifi-radar
wifiradar/__init__.py
wifiradar/config.py
wifiradar/connections.py
wifiradar/gui/g2/prefs.py