From 259dde8835114c88ad04456957ae0c7943866bd4 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 4 Mar 2013 12:47:13 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20u'OK'=20doit=20aussi=20=C3=AAtre?= =?UTF-8?q?=20consid=C3=A9r=C3=A9=20comme=20un=20bool=C3=A9en=20correct.?= 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 c85d651..59302b6 100644 --- a/attributs.py +++ b/attributs.py @@ -200,7 +200,7 @@ class intAttr(Attr): class boolAttr(Attr): def parse_value(self, val, ldif): - if val.lower() == u'true': + if val.lower() in [u'true', u'ok']: self.value = True elif val.lower() == u'false': self.value = False