From d2aebebd2a0e24fe5209012b0adf06cabd16ce62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Wed, 29 Jan 2014 00:53:49 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20Si=20on=20oublie=20les=20parenth?= =?UTF-8?q?=C3=A8ses=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- lc_ldap.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/attributs.py b/attributs.py index 0a4baae..3948a7e 100644 --- a/attributs.py +++ b/attributs.py @@ -1192,7 +1192,7 @@ class gpgMail(mail): super(mail, self).check_uniqueness(liste_exclue) def parse_value(self, mail): - mail = mail.lower + mail = mail.lower() super(gpgMail, self).parse_value(mail) @crans_attribute diff --git a/lc_ldap.py b/lc_ldap.py index b0a5d06..8e76168 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -81,13 +81,13 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object): le ``dn`` associé à l'uid ``user``, et effectue l'authentification avec ce ``dn`` et ``cred`` - Sinon effectue une authentification anonyme - + Si on ne se binde pas en anonyme, il faut de toutes façons fournir un ``user``. Il sert à savoir qui fait les modifications (utilisé dans les champs historique). - + """ ldap.ldapobject.LDAPObject.__init__(self, uri) - + self.lockholder = ldap_locks.LdapLockHolder(self) if user and not re.match('[a-z_][a-z0-9_-]*', user):