From: pascale.noyret Date: Wed, 28 Jan 2015 10:15:09 +0000 (+0100) Subject: pour les tuples X-Git-Tag: AdaoV0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5029c611719b8e55afec0375545535f081dd86a9;p=tools%2Feficas.git pour les tuples --- 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' :