[ressuscite.py] On conserve la clef wifi
Ignore-this: af3af9c2c08269759232c74e1b04b27a darcs-hash:20120902175030-ddb99-0eccd3dd7fc1bc83feadfa04655e7e307b4e5597.gz
This commit is contained in:
parent
2c92618905
commit
ad118cb520
1 changed files with 8 additions and 0 deletions
|
@ -377,6 +377,14 @@ def ressuscite(adh, oldmachine):
|
|||
except EnvironmentError, c: err += c.args[0] + '\n'
|
||||
except RuntimeError, c: err += c.args[0] + '\n'
|
||||
|
||||
# Si c'est une machine WiFi, on rajoute la clé WiFi
|
||||
if choix == 'Wifi':
|
||||
try: machine.ipsec(oldmachine.ipsec())
|
||||
except ValueError, c: err += c.args[0] + '\n'
|
||||
except EnvironmentError, c: err += c.args[0] + '\n'
|
||||
except RuntimeError, c: err += c.args[0] + '\n'
|
||||
except AttributeError: pass # apparemment, ce n'est pas une machine wifi
|
||||
|
||||
# Des erreurs ?
|
||||
if err:
|
||||
dlg.msgbox(text=u"%s" % err,title=u"Paramètres machine")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue