[gest_crans] Cleanup old mess
darcs-hash:20100912132653-ffbb2-17d4fe7263739a7e466d8ea1a4442482fce3de32.gz
This commit is contained in:
parent
3ebe258ba1
commit
4968851255
1 changed files with 2 additions and 3 deletions
|
@ -577,7 +577,7 @@ def set_droits(adher):
|
||||||
droit = droit.strip()
|
droit = droit.strip()
|
||||||
if droit == '': continue
|
if droit == '': continue
|
||||||
if droit not in droits_possibles:
|
if droit not in droits_possibles:
|
||||||
raise ValueError('Droit %s incorrect' % droit)
|
raise ValueError(u'Droit %s incorrect' % droit)
|
||||||
new.append(droit)
|
new.append(droit)
|
||||||
|
|
||||||
# Dans le cas où l'utilisateur qui modifie n'est pas Nounou, on ajoute les
|
# Dans le cas où l'utilisateur qui modifie n'est pas Nounou, on ajoute les
|
||||||
|
@ -1478,8 +1478,7 @@ def set_machine(machine):
|
||||||
|
|
||||||
try: machine.mac(result[1])
|
try: machine.mac(result[1])
|
||||||
except ValueError, c:
|
except ValueError, c:
|
||||||
if len(c.args)>1 and c.args[1] == 1 \
|
if len(c.args)>1 and c.args[1] == 1 and isadm:
|
||||||
and (isadm or machine.nom().endswith("-g.crans.org")):
|
|
||||||
# Mac en double
|
# Mac en double
|
||||||
arg = u'--title "Adresse MAC" '
|
arg = u'--title "Adresse MAC" '
|
||||||
arg += u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'
|
arg += u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue