From e2e3ee491eab63905577a1bcb6c8b764af83162b Mon Sep 17 00:00:00 2001 From: eficas <> Date: Fri, 8 Aug 2003 13:25:14 +0000 Subject: [PATCH] =?utf8?q?PN=20:=20correction=20du=20point=201=20de=20la?= =?utf8?q?=20fiche=20de=20bug=20A02003-188=20=20=20=20=20=20acceptation=20?= =?utf8?q?des=20chaines=20de=20caract=C3=A8res=20non=20entour=C3=A9es=20de?= =?utf8?q?=20quote?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Ihm/I_MCSIMP.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ihm/I_MCSIMP.py b/Ihm/I_MCSIMP.py index cbe8d0c2..06e4b6cf 100644 --- a/Ihm/I_MCSIMP.py +++ b/Ihm/I_MCSIMP.py @@ -260,6 +260,15 @@ class MCSIMP(I_OBJECT.OBJECT): objet = eval(new_valeur,d) return objet,1 except Exception: +# PN : +# - Ajout de quote autour de la valeur en cas de chaine de caracteres + if type(new_valeur)==types.StringType and self.wait_TXM(): + new_valeur="'"+new_valeur+"'" + try : + objet = eval(new_valeur,d) + return objet,1 + except : + return None,0 if CONTEXT.debug : traceback.print_exc() return None,0 -- 2.39.2