100 Commits
Author SHA1 Message Date
Dan O'Reilly 51f8637d95 Make pinging wireless access points when using static gateways optional. 2009-11-24 00:27:41 -05:00
Dan O'Reilly 08f3e6477a Retry AP association verification 10 times to accomodate cards that are slow to associate. Thanks to muttoni for the patch. 2009-11-01 15:22:45 -05:00
Dan O'Reilly a45beaeeaf Determine valid wpa_supplicant drivers by parsing the list from wpa_supplicant, rather than comparing it's output to a static list of possible drivers. 2009-10-30 23:52:30 -04:00
Dan O'Reilly 0872e1b329 Handle essids that are made up of numbers. Thanks to anish for the patch. 2009-10-24 01:03:29 -04:00
Dan O'Reilly 265dd40113 Still trying to get rid of this empty wired-settings.conf section bug. 2009-09-19 17:24:40 -04:00
Dan O'Reilly fe6d854cdf chmod to 0755, not 755. Fixes LP #431304 2009-09-19 14:58:00 -04:00
Dan O'Reilly f5866c0426 Fix for crash when trying to connect to an essid with all numeric characters. 2009-09-10 19:43:26 -04:00
Dan O'Reilly ec8eade509 Wait for the network interface to finish coming up before moving on during the connection process.
Use a dict instead of if/elifs in StartDHCP() method.
2009-08-28 19:47:55 -04:00
Dan O'Reilly a151a589cc Merge. 2009-08-03 19:30:21 -04:00
Dan O'Reilly f3d9a3b6da Actually display the error messag we get when scanning fails in the ioctl backend.
Make sure we actually abort the connection attempt when authentication validation fails.
2009-08-03 19:29:18 -04:00
Dan O'Reilly 0467dd8fce Fix crash when trying to use an unavaiable locale. 2009-08-01 21:25:58 -04:00
Dan O'Reilly 08fc68a459 Enforce valid wired profile names at the GUI level. 2009-08-01 19:05:24 -04:00
Dan O'Reilly d684bac0ab Fix some minor formatting issues
Don't save wired profiles that have only whitespace in their names.
2009-08-01 18:57:00 -04:00
Dan O'Reilly 6cedaf0199 Make sure we run to_unicode on all properties we read from disk or get from the user (bug 390680).
Don't try to run global scripts of the global script directory doesn't exist (bug 386244).
2009-07-02 18:26:37 -04:00
Dan O'Reilly 27f2890c12 Fix crash when trying to create an ad-hoc network. 2009-07-02 16:50:48 -04:00
Dan O'Reilly c1ff548273 Merge. 2009-06-14 14:27:21 -04:00
Dan O'Reilly d07dea2390 Convert strings being prints out by dhclients to utf-8 before trying to log them.
When iwscan displays two entries for a hidden network, only display the one with the essid included.
2009-06-14 14:25:06 -04:00
Dan O'Reilly 834d298c33 Merge 1.6-dan 2009-05-27 22:25:32 -04:00
Dan O'Reilly 1ee51fb747 Try to recover if we attempt to load a non-existent backend. 2009-05-24 17:11:14 -04:00
Dan O'Reilly 0408be848e Merge 2009-05-22 15:43:14 -04:00
Dan O'Reilly c334cac1c8 - Make the GUI behave better when a disconnect button is pushed.
- Move some of the libnotify logic to guiutil.py and add support for displaying some error messages in a libnotify pop-up.
- Apply some patches provided by sunseraph.  Tweak to the channel regex and checking for a valid AP bssid when monitoring a wireless connection.  Set essid, bssid, and channel in separate calls to iwconfig.
- Add caching for ifconfig and iwconfig results in wnettools.py.  That way we're not needlessly calling the same command a bunch of times in a short period of time (2 seconds).  This removes the need for us to pass around iwconfig/ifconfig output elsewhere, though I've left it in for now.
- Remove unneeded BackendManager instance from networking.py
- Fix last used wired networking autoconnection method
2009-05-22 15:40:35 -04:00
Dan O'Reilly df065dc997 - Make the GUI behave better when a disconnect button is pushed.
- Move some of the libnotify logic to guiutil.py and add support for displaying some error messages in a libnotify pop-up.
- Apply some patches provided by sunseraph.  Tweak to the channel regex and checking for a valid AP bssid when monitoring a wireless connection.  Set essid, bssid, and channel in separate calls to iwconfig.
- Add caching for ifconfig and iwconfig results in wnettools.py.  That way we're not needlessly calling the same command a bunch of times in a short period of time (2 seconds).  This removes the need for us to pass around iwconfig/ifconfig output elsewhere, though I've left it in for now.
- Remove unneeded BackendManager instance from networking.py
2009-05-22 15:33:03 -04:00
Dan O'Reilly 6f9ab00673 Don't use dbusmanager.DBusException--it doesn't exist. 2009-05-10 13:53:54 -04:00
Dan O'Reilly 8dc997548e Make bitrates regex work when it's the last entry in a cell. 2009-05-09 20:53:49 -04:00
Dan O'Reilly 8dcc028c39 Fix bug where shared essid settings couldn't be disabled once they were turned on. 2009-05-01 20:26:46 -04:00
Dan O'Reilly adec1fdc18 Fix crash when saving settings for unencrypted networks.
Remove unneeded function in prefs.py
2009-05-01 20:20:40 -04:00
Dan O'Reilly 531cde7250 Correctly handle case where a key is all digits and starts with a '0'.
Remove some unused imports.
Simplfy code that checks for valid wpa_supplicant drivers.
2009-04-27 19:17:01 -04:00
Dan O'Reilly 779fb40fff Refactor monitor.py polling code to remove reliance on globals.
Make sure we update the polling rate in wicd-monitor when the backend changes.
2009-04-21 21:25:59 -04:00
Dan O'Reilly 97d553bce3 Use atexit instead of catching SIGTERM in wicd-daemon.
Use Popen to launch wicd-monitor instead of gobject.spawn_async.
2009-04-21 20:30:40 -04:00
Dan O'Reilly 2f14b3d5f0 Use the -v option if dhclient is 4.x
Simplify sorting method for WAPs.
2009-04-19 21:13:58 -04:00
Dan O'Reilly b82212e9a6 Remove pointless assignment in be-ioctl
Set wireless mode before putting interface up.
Put wireless interfaces up before trying to authenticate.
2009-04-16 21:49:42 -04:00
Dan O'Reilly 0a35f0989d Fix duplicate GetOperationalMode() methods.
Switch misc.get_gettext() to translations.get_gettext() in configscript.py
2009-04-11 22:45:13 -04:00
Dan O'Reilly e12b29072d Add missing print statement to ExecuteScripts() 2009-04-11 22:41:34 -04:00
Dan O'Reilly 3a4ea9a0b5 Make sure we fall back to wpa_cli if wpactrl isn't available when stopping wpa_supplicant. 2009-04-11 19:57:02 -04:00
Dan O'Reilly 0a007d0f44 Only check for wireless tools in the ioctl backend if wpactrl isn't available.
Fix up error handling when there is no graphical sudo program installed.
2009-04-11 18:53:30 -04:00
Dan O'Reilly 0aaba8c439 Make sure we check for wirelesstools in the ioctl backend. 2009-04-11 18:37:51 -04:00
Dan O'Reilly 8ecd9ec029 Don't build C extensions modules in main setup.py
Give WirelessInformationDialog a parent.
2009-04-11 18:04:22 -04:00
Dan O'Reilly 665fe76885 Fix crash with hidden essids if it was stored in wireless-settings.conf as None.
Only trigger a wpa_supplicant rescan once when connecting.
2009-04-04 13:43:29 -04:00
Dan O'Reilly b79151ef07 Always use the "C" local when running external commands. 2009-04-03 19:07:00 -04:00
Dan O'Reilly 57f6aab60c Merge. 2009-03-27 23:14:19 -04:00
Dan O'Reilly 2b54f26c4e Fix another issue with integer keys. 2009-03-27 23:13:16 -04:00
Dan O'Reilly d7f2fd4780 Add a workaround for an issue where large integers got mishandled by python-dbus on 64-bit systems.
Fix potential issue if encryption key is a number
Close all open fd's in the daemonize code.
2009-03-25 20:19:11 -04:00
Dan O'Reilly 69585f2032 Remove some unneeded imports.
Remove unused variable.
2009-03-23 17:53:59 -04:00
Dan O'Reilly ad09dea66e Merge to import lines. 2009-03-23 01:30:16 -04:00
Dan O'Reilly bb9d3690de Make the ioctl backends use of python-iwscan and python-wpactrl optional.
Don't use __all__ in wnettools.py, and make the backends explicitly import the methods/classes they need from wnettools.py.
2009-03-23 01:28:50 -04:00
Dan O'Reilly d09344b329 Update docstrings. 2009-03-22 18:39:44 -04:00
Dan O'Reilly 65c72ba3a2 Update copyrights and some docstrings.
Make trayicon network menu scan-triggering behave better.
2009-03-22 17:36:55 -04:00
Dan O'Reilly f79067c692 Fix decorators. 2009-03-22 00:13:42 -04:00
Dan O'Reilly 62aac0d79d Merge enctemplates branch. 2009-03-21 22:38:33 -04:00
Dan O'Reilly a1ecc0fe81 Added a neediface decorator to replace using "if not self.iface return..." in every method that needs it. 2009-03-21 22:22:04 -04:00
Dan O'Reilly b8db5007fa Add missing check for no interface to GetIP. 2009-03-21 19:41:13 -04:00
Dan O'Reilly fc31e92e78 Merge 1.6 branch. 2009-03-21 16:37:21 -04:00
Dan O'Reilly 34832775c8 - Replace some tabs that snuck in with spaces.
- Try to validate successful association with static IPs by pinging the gateway specified.
2009-03-21 16:28:40 -04:00
Dan O'Reilly fac3d9a09f Fix some issues in the template error handling code. 2009-03-21 15:30:26 -04:00
Dan O'Reilly c7249edd3c Merge from 1.6 branch. 2009-03-16 23:19:06 -04:00
Dan O'Reilly 518e0ec358 Apply Debian initscript patch from David Paleino. 2009-03-15 20:54:16 -04:00
Dan O'Reilly 7a8f798138 Merge in resolvconf support. 2009-03-15 15:54:14 -04:00
Dan O'Reilly 5220203bda Only print "Setting DNS" message if debug mode is on. 2009-03-15 13:47:55 -04:00
Dan O'Reilly 4d33a308bc Fix how we set nameserver entries after code review. 2009-03-14 17:41:51 -04:00
Dan O'Reilly b1b956c9c9 Merge 2009-03-13 18:55:18 -04:00
Dan O'Reilly e70ad1e9c0 Merge. 2009-03-12 20:54:33 -04:00
Dan O'Reilly 92f15567f7 Merge. 2009-03-09 01:49:33 -04:00
Dan O'Reilly f4fc8ae949 Add lunar init directory. 2009-03-09 01:46:31 -04:00
Dan O'Reilly b66bd696af Add support for using resolvconf instead of directly editing resolv.conf if possible. 2009-03-09 00:07:39 -04:00
Dan O'Reilly 842d281b28 Still trying to fix this... 2009-03-08 23:39:41 -04:00
Dan O'Reilly 9cc9a8460d Merge. 2009-03-08 23:14:35 -04:00
Dan O'Reilly a04c04aa21 Merge. 2009-03-08 23:09:12 -04:00
Dan O'Reilly 9ee7267005 Merging/removing accidently commit. 2009-03-08 23:07:38 -04:00
Dan O'Reilly 79f64e4180 Undoing accidental commit. 2009-03-08 23:03:04 -04:00
Dan O'Reilly 975f4c6ecf Merge in Dario Freddi's additions, with some modifications. 2009-03-08 22:49:24 -04:00
Dan O'Reilly f43a8d670c Merge. 2009-03-08 22:45:24 -04:00
Dan O'Reilly 5170411595 Create an error dialog when we get a DBus access denied error. 2009-03-08 20:38:54 -04:00
Dan O'Reilly 966ae97667 Merge encryption template changes for curses. 2009-03-08 18:38:16 -04:00
Dan O'Reilly cfdf5eb807 Merge. 2009-03-08 18:32:48 -04:00
Dan O'Reilly 4365a8406b Fix suse init script. 2009-03-08 15:58:44 -04:00
Dan O'Reilly ff71e4d130 Merge 2009-03-04 18:34:35 -05:00
Dan O'Reilly 34fbabf8a7 Fix setup.py bug where - was getting turned into _ in paths. 2009-03-04 18:32:15 -05:00
Dan O'Reilly 6dd0642079 Apply lang patch from David Paleino 2009-03-01 23:15:34 -05:00
Dan O'Reilly 80d05774d9 Merge in global script support. 2009-03-01 23:00:22 -05:00
Dan O'Reilly 5f6807732a Don't provide separate options for pre/post/disconnect scripts. Just a parent scripts directory. 2009-03-01 22:43:28 -05:00
Dan O'Reilly f66ec767fe Merge. 2009-03-01 21:50:18 -05:00
Dan O'Reilly 8112851a86 Tweak encryption template code so that optional parameters can be supplied. Tweak UI code to reflect that new functionality.
Allow for slightly more variation in template formatting.
2009-02-28 21:52:27 -05:00
Dan O'Reilly 454770e5e9 Add support for using resolvconf instead of directly editing /etc/resolv.conf if it's available. 2009-02-28 16:01:26 -05:00
Dan O'Reilly edbfd18553 Don't use the thread module in networking.py. 2009-02-28 15:34:34 -05:00
Dan O'Reilly cafde692e5 Merge 2009-02-28 15:16:45 -05:00
Dan O'Reilly e40afce104 Initial crack at global scripts support. Also includes some setup.py tweaks. 2009-02-27 00:40:19 -05:00
Dan O'Reilly fab8d84dee Merge. 2009-02-27 00:38:09 -05:00
Dan O'Reilly 0af4c5331e Get rid of unneeded "use_tray" variable being passed around in wicd-client.
Remove some extra whitespace in networking.py
2009-02-27 00:35:53 -05:00
Dan O'Reilly a23fbcede5 Merge. 2009-02-27 00:20:37 -05:00
Dan O'Reilly de8b8c11f8 Get rid of unneeded "use_tray" variable being passed around in wicd-client.
Add some methods for executing multiple scripts to be use for global scripts later.
Remove some rogue extra whitespace in networking.py
2009-02-27 00:13:00 -05:00
Dan O'Reilly ae0f589d43 Fix issue where signal strength wouldn't be reported correctly if the first link quality regex didn't match.
Add some helper methods that will eventually be used for encryption template parsing.
Use more specific exception checking in a few places.
2009-02-27 00:08:31 -05:00
Dan O'Reilly 5aaaa117e7 Fix typo 2009-02-21 13:11:55 -05:00
Dan O'Reilly e879b49a82 merge 2009-02-21 01:00:40 -05:00
Dan O'Reilly b7141f43cb Create the wpactrl interface connection in a less bizarre way. 2009-02-21 00:57:40 -05:00
Dan O'Reilly 42ef13d5a9 Merge. 2009-02-17 23:44:25 -05:00
Dan O'Reilly a62840dd96 Refactor wnettools/backend code so that most external tool functionality exists in wnettools, and it just inherited by the external backends. This simplifies creating new backends that just override selected methods.
Rewrite encryption template parsing code to allow blank entries (though the GUI still doesn't), and be more permissive of slightly incorrect formatting.
Fix bug in wicd-monitor error handling code.
2009-02-17 23:29:14 -05:00
Dan O'Reilly 7e18194c29 Fix bug where GUI could get stuck in the connecting state if the GUI was first opened while a connection was in progress. 2009-02-13 18:54:27 -05:00
Dan O'Reilly 71583f700b Merge experimental-rworkman 2009-02-12 20:07:12 -05:00
Dan O'Reilly 13733aaac3 Merged curses changes. 2009-02-12 18:48:10 -05:00
Dan O'Reilly f237f421ab Fix issue where GetForcedDisconnect was returning True when we had just connected.
Fix issues with auto-switch to wired.
Change to how the gui handles changing state from connecting to not-connecting to be nicer.
Make the gui trigger monitor state updates while in the connecting state.
Make sure the monitor logs a warning when it catches a D-Bus exception.
Make sure cancelling a wired connection attempt kills DHCP.
Fix issue where DHCP wouldn't get run if automatic dhcp tool was enabled.
2009-02-12 18:38:40 -05:00