[ldap_crans] on a le droit de commencer un dns par un chiffre
Ignore-this: fbe0825a9a2e05b675f9b33977dd0fdd parce que 4chan darcs-hash:20121011164344-28565-e8a62045f7e58243fb727501cb1a12f1a1fe98fc.gz
This commit is contained in:
parent
b3a74d3233
commit
c1595e6af3
1 changed files with 0 additions and 3 deletions
|
@ -2797,9 +2797,6 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
|
||||||
if l > 17:
|
if l > 17:
|
||||||
raise ValueError(u"%s trop long." % champ.capitalize())
|
raise ValueError(u"%s trop long." % champ.capitalize())
|
||||||
|
|
||||||
if not new[0].isalpha():
|
|
||||||
raise ValueError(u"Le premier caractère du champ %s doit être alphabétique" % champ)
|
|
||||||
|
|
||||||
if new.endswith('-'):
|
if new.endswith('-'):
|
||||||
raise ValueError(u"Le dernier caractère du champ %s ne peut être un tiret" % champ)
|
raise ValueError(u"Le dernier caractère du champ %s ne peut être un tiret" % champ)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue