From ed7a2b963745e5abc14e1e09d8352b840de58ea8 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Mon, 21 Nov 2011 10:30:52 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20On=20autorise=20plus=20de=20carac?= =?UTF-8?q?t=C3=A8res=20dans=20les=20nom=20des=20clubs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 36a7665..4432d82 100644 --- a/attributs.py +++ b/attributs.py @@ -172,7 +172,10 @@ class nom(Attr): legend = "Nom" def parse_value(self, val, ldif): - self.value = validate_name(val) + if u'club' in ldif['objectClass']: + self.value = validate_name(val,"0123456789\[\]") + else: + self.value = validate_name(val) class prenom(Attr):