4 def __init__(self
, applet
, id):
11 np
= self
.applet
.ii
.getNetworkProperties(self
.id, NETWORK_TYPE_ALLOWED
)
14 print " time:", dump_time(np
[1])
15 print " trusted:", bool(np
[2])
16 print " bssids:", ", ".join(np
[3])
18 print " we_cipher:", enctype
20 print " secret:", np
[5]
22 print " wep_auth_algorithm:", np
[6]
24 print " wpa_psk_key_mgt:", np
[6]
25 print " wpa_psk_wpa_version:", np
[7]
27 return # nm-applet will not tell kfn anyway
28 devp
= "/org/freedesktop/NetworkManager/Devices/ath0" #FIXME
29 netp
= devp
+ "/Networks/" + opath_escape(self
.id)
32 kfn
= self
.applet
.ii
.getKeyForNetwork(devp
, netp
, ssid
, attempt
, newkey
)