[ldap_crans.py] correction de bug
darcs-hash:20090318122454-bd074-2f1a204b1a3bb97e6293694a3a2d68ce888f8077.gz
This commit is contained in:
parent
1bc964219d
commit
ef9462cbbf
1 changed files with 2 additions and 2 deletions
|
@ -1805,8 +1805,8 @@ class Adherent(BaseProprietaire):
|
||||||
|
|
||||||
l, new = preattr(new)
|
l, new = preattr(new)
|
||||||
new = new.capitalize()
|
new = new.capitalize()
|
||||||
for c in new[:]:
|
for c in strip_accents(new[:]):
|
||||||
if c not in (string.letters + '- ' + preattr(accents)[1] ):
|
if c not in (string.letters + '- '):
|
||||||
raise ValueError(u"Seuls les caractères alphabétiques, l'espace et le - sont permis dans %s." % champ)
|
raise ValueError(u"Seuls les caractères alphabétiques, l'espace et le - sont permis dans %s." % champ)
|
||||||
if l<2:
|
if l<2:
|
||||||
raise ValueError(u"%s trop court." % champ)
|
raise ValueError(u"%s trop court." % champ)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue