From 3d1b4818aadfa49fdcd2adc297756f60748c659f Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sun, 27 Feb 2011 00:22:15 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20On=20ne=20crashe=20plus=20si=20on?= =?UTF-8?q?=20cherche=20le=20propri=C3=A9taire=20d'un=20club...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 4bd5aaa..8c48623 100644 --- a/attributs.py +++ b/attributs.py @@ -416,7 +416,7 @@ class responsable(Attr): legend = u"Responsable du club" def parse_value(self, resp, ldif): - self.value = self.conn.search('aid=%d' % self.value)[0] + self.value = self.conn.search('aid=%s' % resp)[0] def __unicode__(self): return self.value.attrs['aid'][0]