clubs: regex moins chiante sur les noms

This commit is contained in:
Daniel STAN 2013-10-07 01:02:47 +02:00
parent 3cbbb2303f
commit f199947a5d
2 changed files with 2 additions and 2 deletions

View file

@ -363,7 +363,7 @@ class nom(Attr):
def parse_value(self, nom):
if self.parent != None:
if u'club' in [str(o) for o in self.parent['objectClass']]:
if u'club' in [o.value for o in self.parent['objectClass']]:
self.value = validate_name(nom,"0123456789\[\]")
else:
self.value = validate_name(nom)