From 5029c611719b8e55afec0375545535f081dd86a9 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 28 Jan 2015 11:15:09 +0100 Subject: [PATCH] pour les tuples --- Validation/V_MCSIMP.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Validation/V_MCSIMP.py b/Validation/V_MCSIMP.py index 8a5c32e9..45ac1820 100644 --- a/Validation/V_MCSIMP.py +++ b/Validation/V_MCSIMP.py @@ -100,6 +100,12 @@ class MCSIMP: valid = 0 lval=listProto.adapt(v) + #Pour tenir compte des Tuples + if hasattr(self.definition.type[0],'ntuple') : + try : + if not (type(lval[0]) is tuple) : lval=(lval,) + except : + pass if lval is None: valid=0 if cr == 'oui' : -- 2.39.2