Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/nm/nmclient.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-11-12 21:44:28 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-11-12 21:44:28 (GMT)
commit4cd09ed5f83020a30cf75a570837d05b4c021adb (patch)
treecd82b702625acfb0bfd47adf2b77344b0b0c8078 /services/nm/nmclient.py
parentf677eea6e364524a61c52c4c6e4d6a33c94a2781 (diff)
Add a simple dialog to enter the web hex key. Several typo fixed.
Merged a patch from Dan.
Diffstat (limited to 'services/nm/nmclient.py')
-rw-r--r--services/nm/nmclient.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/services/nm/nmclient.py b/services/nm/nmclient.py
index d79919f..ef71fd8 100644
--- a/services/nm/nmclient.py
+++ b/services/nm/nmclient.py
@@ -30,6 +30,7 @@ from sugar.graphics.menu import Menu
from sugar.graphics import style
from sugar.graphics.iconcolor import IconColor
from sugar.graphics.timeline import Timeline
+from wepkeydialog import WEPKeyDialog
from bubble import Bubble
import nminfo
@@ -784,6 +785,20 @@ class NMClientApp:
# Auth algorithm should be a dropdown of: [Open System, Shared Key],
# mapping to the values [IW_AUTH_ALG_OPEN_SYSTEM, IW_AUTH_ALG_SHARED_KEY]
# above
+
+ dialog = WEPKeyDialog()
+ response = dialog.run()
+ dialog.destroy()
+
+ if response == gtk.RESPONSE_OK:
+ key = dialog.get_key()
+ self.nminfo.get_key_for_network_cb(key, wep_auth_alg, canceled=False)
+ else:
+ self.nminfo.get_key_for_network_cb(None, None, canceled=True)
+
+ def cancel_get_key_for_network(self):
+ # Close the wireless key dialog and just have it return
+ # with the 'canceled' argument set to true
pass
def device_activation_stage_sig_handler(self, device, stage):