Typo
darcs-hash:20041019171657-d1718-063a48a144011cfaf1500d131fcbb95ae92b6a15.gz
This commit is contained in:
parent
c770fee0cc
commit
5f8c3ad3af
1 changed files with 13 additions and 14 deletions
|
@ -894,20 +894,19 @@ def set_machine(machine) :
|
|||
|
||||
try : machine.mac(result[1])
|
||||
except ValueError, c :
|
||||
if len(c.args)>1:
|
||||
if c.args[1] == 1 and isadm :
|
||||
# Mac en double
|
||||
arg = u'--title "Adresse MAC" '
|
||||
arg+= u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'
|
||||
no, res = dialog(arg)
|
||||
if no :
|
||||
return set_machine(machine)
|
||||
else :
|
||||
try : machine.mac(result[1],1)
|
||||
except ValueError, c : err += c.args[0] + '\n'
|
||||
except EnvironmentError, c : err += c.args[0] + '\n'
|
||||
else:
|
||||
err += c.args[0] + '\n'
|
||||
if len(c.args)>1 and c.args[1] == 1 and isadm:
|
||||
# Mac en double
|
||||
arg = u'--title "Adresse MAC" '
|
||||
arg+= u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'
|
||||
no, res = dialog(arg)
|
||||
if no :
|
||||
return set_machine(machine)
|
||||
else :
|
||||
try : machine.mac(result[1],1)
|
||||
except ValueError, c : err += c.args[0] + '\n'
|
||||
except EnvironmentError, c : err += c.args[0] + '\n'
|
||||
else:
|
||||
err += c.args[0] + '\n'
|
||||
|
||||
except EnvironmentError, c : err += c.args[0] + '\n'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue