From: Pascale Noyret Date: Thu, 9 Jan 2014 09:08:10 +0000 (+0000) Subject: pour pb de P1 = 8 dans defi list X-Git-Tag: MAP_V2014_1~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db944c371982b98391fc92d27c2229ed94a783b7;p=tools%2Feficas.git pour pb de P1 = 8 dans defi list --- diff --git a/generator/generator_python.py b/generator/generator_python.py index d9178d58..ddae4a4d 100644 --- a/generator/generator_python.py +++ b/generator/generator_python.py @@ -554,12 +554,16 @@ class PythonGenerator: try : k=liste[indice+nbrColonnes] for l in range(nbrColonnes) : - textformat=textformat+liste[indice]+"," + texteVariable=liste[indice].split("=")[0] + if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')' + textformat=textformat+texteVariable+"," indice=indice+1 textformat=textformat+"\n" except : while ( indice < len(liste) ) : - textformat=textformat+liste[indice]+"," + texteVariable=liste[indice].split("=")[0] + if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')' + textformat=textformat+texteVariable+"," indice=indice+1 textformat=textformat+"\n" except :