From c6f49d83aaaf9d97ebf1928a7025df4b59b9c38b Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 29 Nov 2012 01:43:42 +0100 Subject: [PATCH] =?UTF-8?q?Fixing=20du=20bug=20introduit=20par=20"""680446?= =?UTF-8?q?be8b8a5aa3452b694e2a136db0e14b0eff=20[attributs,lc=5Fldap]=20On?= =?UTF-8?q?=20va=20chercher=20les=20responsables=20de=20club=20de=20mani?= =?UTF-8?q?=C3=A8re=20paresseuse"""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit En fait le __unicode__ d'un club cherchait à acceder à self.value.attrs, or self.value était devenu une property donc on ne pouvait plus. Or on ne cherchait à obtenir que l'aid, qui a été déplacé dans self.__resp par le commit ci-dessus. --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 06b1c36..c0064d1 100644 --- a/attributs.py +++ b/attributs.py @@ -459,7 +459,7 @@ class responsable(Attr): self.value = property(self.get_respo) def __unicode__(self): - return self.value.attrs['aid'][0].__unicode__() + return self.__resp class blacklist(Attr):