From 5a158d7c5c9ec46a9afab519e747684e68bec3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 13 Apr 2015 03:05:41 +0200 Subject: [PATCH] =?UTF-8?q?Un=20club=20en=20cours=20de=20cr=C3=A9ation=20n?= =?UTF-8?q?'a=20pas=20n=C3=A9cessairement=20de=20respo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lc_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lc_ldap.py b/lc_ldap.py index 8aeea15..8d9f0a6 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -569,7 +569,7 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object): club = obj if isinstance(obj, objets.machine) or isinstance(obj, objets.facture): club = obj.proprio() - if isinstance(club, objets.club) and "aid=" + str(club['responsable'][0]) + "," + variables.base_dn == self.dn: + if isinstance(club, objets.club) and "aid=" + str(club.get('responsable', [''])[0]) + "," + variables.base_dn == self.dn: return [attributs.respo] return []