From e3e0485045f0432771eeeab1041218c6043f91d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 28 Jan 2013 02:26:52 +0100 Subject: [PATCH] =?UTF-8?q?[Attributs.py]=20Le=20test=20dans=20class=20con?= =?UTF-8?q?trole=20est=20bidon,=20et=20incoh=C3=A9rent=20vis-=C3=A0-vis=20?= =?UTF-8?q?de=20celui=20du=20binding=20actuel...=20J'inverse=20les=20deux?= =?UTF-8?q?=20caract=C3=A8res,=20mais=20je=20vais=20peut-=C3=AAtre=20juste?= =?UTF-8?q?=20supprimer...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attributs.py b/attributs.py index 21d9447..1c33333 100644 --- a/attributs.py +++ b/attributs.py @@ -763,8 +763,8 @@ class controle(Attr): def parse_value(self, ctrl, ldif): if ctrl not in [u"", u"c", u"p", u"cp", u"pc"]: raise ValueError("control peut prendre les valeurs [c][p]") - if ctrl == u'pc': - self.value = u'cp' + if ctrl == u'cp': + self.value = u'pc' else: self.value = ctrl