Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/nm
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-11-13 00:12:17 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-11-13 00:12:17 (GMT)
commit5e4d972f405021aa5fc201bf77d4fa9f7963f75a (patch)
treea9cbe0a2f3be07b19f3cca248fcc136b4a11c276 /services/nm
parent9e6f1b6619d680044872a7e671f2dc1bc01bf364 (diff)
Fix more key dialog interaction
Diffstat (limited to 'services/nm')
-rw-r--r--services/nm/nmclient.py2
-rw-r--r--services/nm/nminfo.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/services/nm/nmclient.py b/services/nm/nmclient.py
index 3133c4e..ee2b1e9 100644
--- a/services/nm/nmclient.py
+++ b/services/nm/nmclient.py
@@ -775,7 +775,7 @@ class NMClientApp:
self._popdown()
- def get_key_for_network(self, async_cb, async_err_cb, wep_auth_alg=IW_AUTH_ALG_OPEN_SYSTEM):
+ def get_key_for_network(self, net, async_cb, async_err_cb, wep_auth_alg=IW_AUTH_ALG_OPEN_SYSTEM):
# Throw up a dialog asking for the key here, and set
# the authentication algorithm to the given one, if any
#
diff --git a/services/nm/nminfo.py b/services/nm/nminfo.py
index a03157a..9aff075 100644
--- a/services/nm/nminfo.py
+++ b/services/nm/nminfo.py
@@ -22,6 +22,7 @@ import time
import os
import binascii
from ConfigParser import ConfigParser
+import logging
import nmclient
try:
@@ -139,7 +140,7 @@ class Security(object):
new_from_args = staticmethod(new_from_args)
def get_properties(self):
- return [self._we_cipher]
+ return [dbus.Int32(self._we_cipher)]
def write_to_config(self, section, config):
config.set(section, "we_cipher", self._we_cipher)
@@ -176,7 +177,7 @@ class WEPSecurity(Security):
def get_properties(self):
args = Security.get_properties(self)
args.append(self._key)
- args.append(self._auth_alg)
+ args.append(dbus.Int32(self._auth_alg))
return args
def write_to_config(self, section, config):
@@ -392,7 +393,7 @@ class NMInfo(object):
if not net:
async_err_cb(NotFoundError("Network was unknown."))
- self._nmclient.get_key_for_network(async_cb, async_err_cb, net)
+ self._nmclient.get_key_for_network(net, async_cb, async_err_cb)
def get_key_for_network_cb(self, key, auth_alg, async_cb, async_err_cb, canceled=False):
"""