From e1d2c0935c8a82d1f94f0de036b0ac4f19e26f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Wed, 4 Mar 2015 15:41:05 +0100 Subject: [PATCH] =?UTF-8?q?Lors=20de=20la=20cr=C3=A9ation=20des=20comptes,?= =?UTF-8?q?=20le=20setdefault=20sur=20self.modif=20=C3=A9tait=20foireux.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 c17bb68e..c2eb0c01 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2555,7 +2555,7 @@ class Adherent(BaseProprietaire): self._data['mail'] = ["%s@crans.org" % (login)] if not 'compte' in self.modifs: - self.modifs.setdefault('compte', '') + self.modifs.setdefault('compte', ",") # Création de l'alias canonique if self.nom() and self.prenom(): @@ -2892,7 +2892,7 @@ class Club(BaseProprietaire): self.lock('mail', login) if not 'compte' in self.modifs: - self.modifs.setdefault('compte', '') + self.modifs.setdefault('compte', ',') self._data['objectClass'] = ['club', 'cransAccount', 'posixAccount', 'shadowAccount'] self._data['uid'] = [ login ]