X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=generator%2Fgenerator_modification.py;h=d309d52a04d2ff936b16f13035ff6d32605f043e;hb=816b56a2b115901698682854b1d291a19115292f;hp=fa5a130aefd5c63eedad18eddd62323e18644de4;hpb=7b4162f8842f6ac0f099e392660843bc9896847d;p=tools%2Feficas.git diff --git a/generator/generator_modification.py b/generator/generator_modification.py index fa5a130a..d309d52a 100644 --- a/generator/generator_modification.py +++ b/generator/generator_modification.py @@ -1,42 +1,47 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2007-2013 EDF R&D -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -""" - Ce module sert pour charger les parametres de configuration d'EFICAS -""" -# Modules Python -import os, sys, string, types, re -from Extensions.i18n import tr - -class ModificationGenerator: - def generTexteModif(self,obj): - texteModification="" - for t in obj.editor.dicoNouveauxMC.keys() : - # 'ajoutDefinitionMC',etape,listeAvant,nomDuMC,typ,args - print t - fonction,Etape,Genea,nomSIMP,typeSIMP,arguments = obj.editor.dicoNouveauxMC[t] - texteModification += "MODIFICATION_CATALOGUE(Fonction = '" + str(fonction)+ "',\n" - texteModification += " Etape = '" + str(Etape) + "',\n" - texteModification += " Genea = " + str(Genea) + ",\n" - texteModification += " NomSIMP = '" + str(nomSIMP) + "',\n" - texteModification += " TypeSIMP = '" + str(typeSIMP)+ "',\n" - texteModification += " PhraseArguments = " +'"' + str(arguments)+ '"'+ ",);\n" - - - return texteModification +# -*- coding: utf-8 -*- +# Copyright (C) 2007-2017 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +""" + Ce module sert pour charger les parametres de configuration d'EFICAS +""" +# Modules Python +from __future__ import absolute_import +try : + from builtins import str + from builtins import object +except : pass + +import os, sys, types, re +from Extensions.i18n import tr + +class ModificationGenerator(object): + def generTexteModif(self,obj): + texteModification="" + for t in list(obj.editor.dicoNouveauxMC.keys()) : + # 'ajoutDefinitionMC',etape,listeAvant,nomDuMC,typ,args + fonction,Etape,Genea,nomSIMP,typeSIMP,arguments = obj.editor.dicoNouveauxMC[t] + texteModification += "MODIFICATION_CATALOGUE(Fonction = '" + str(fonction)+ "',\n" + texteModification += " Etape = '" + str(Etape) + "',\n" + texteModification += " Genea = " + str(Genea) + ",\n" + texteModification += " NomSIMP = '" + str(nomSIMP) + "',\n" + texteModification += " TypeSIMP = '" + str(typeSIMP)+ "',\n" + texteModification += " PhraseArguments = " +'"' + str(arguments)+ '"'+ ",);\n" + + + return texteModification