From c1595e6af39c37b62787877a0a119a23c8e12d5e Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Thu, 11 Oct 2012 18:43:44 +0200 Subject: [PATCH] [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 --- gestion/ldap_crans.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index b3424755..33377e10 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2797,9 +2797,6 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3) if l > 17: 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('-'): raise ValueError(u"Le dernier caractère du champ %s ne peut être un tiret" % champ)