From ef9462cbbf5fdd4afbd8b8e36925b2ed253cf193 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Wed, 18 Mar 2009 13:24:54 +0100 Subject: [PATCH] [ldap_crans.py] correction de bug darcs-hash:20090318122454-bd074-2f1a204b1a3bb97e6293694a3a2d68ce888f8077.gz --- gestion/ldap_crans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index c5b0ab52..51e7014d 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1805,8 +1805,8 @@ class Adherent(BaseProprietaire): l, new = preattr(new) new = new.capitalize() - for c in new[:]: - if c not in (string.letters + '- ' + preattr(accents)[1] ): + for c in strip_accents(new[:]): + if c not in (string.letters + '- '): raise ValueError(u"Seuls les caractères alphabétiques, l'espace et le - sont permis dans %s." % champ) if l<2: raise ValueError(u"%s trop court." % champ)