X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=generator%2Fgenerator_homard.py;h=0f1958cccbfa7720f4eec399ea8186c9c02ac4a1;hb=42895950e564e837c445896b5bac263370bdf37b;hp=09a20a9d338d13722c179435adb255d71d0a4f64;hpb=61f2a263b67981f299c496ce7ef8bccc3ac6e68b;p=tools%2Feficas.git diff --git a/generator/generator_homard.py b/generator/generator_homard.py index 09a20a9d..0f1958cc 100644 --- a/generator/generator_homard.py +++ b/generator/generator_homard.py @@ -1,23 +1,22 @@ # -*- coding: utf-8 -*- -# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. +# Copyright (C) 2007-2013 EDF R&D # -# THIS PROGRAM 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 -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. +# 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. # -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. +# 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 contient le plugin generateur de fichier au format homard pour EFICAS. @@ -37,14 +36,14 @@ from generator_python import PythonGenerator def entryPoint(): """ - Retourne les informations nécessaires pour le chargeur de plugins + Retourne les informations necessaires pour le chargeur de plugins - Ces informations sont retournées dans un dictionnaire + Ces informations sont retournees dans un dictionnaire """ return { # Le nom du plugin 'name' : 'homard', - # La factory pour créer une instance du plugin + # La factory pour creer une instance du plugin 'factory' : HomardGenerator, } @@ -56,7 +55,7 @@ class HomardGenerator(PythonGenerator): un texte au format homard """ - # Les extensions de fichier préconisées + # Les extensions de fichier preconis�es extensions=('.comm',) def __init__(self,cr=None): @@ -66,7 +65,7 @@ class HomardGenerator(PythonGenerator): else: self.cr=N_CR.CR(debut='CR generateur format homard pour homard', fin='fin CR format homard pour homard') - # Le texte au format homard est stocké dans l'attribut text + # Le texte au format homard est stock� dans l'attribut text self.dico_mot_clef={} self.assoc={} self.init_assoc() @@ -125,7 +124,7 @@ class HomardGenerator(PythonGenerator): def generMCSIMP(self,obj) : """ - Convertit un objet MCSIMP en une liste de chaines de caractères à la + Convertit un objet MCSIMP en une liste de chaines de caract�res � la syntaxe homard """ s=PythonGenerator.generMCSIMP(self,obj) @@ -154,7 +153,7 @@ class HomardGenerator(PythonGenerator): self.textehomard=[] for mot in self.lmot_clef: -# on verifie d'abord que le mot clef doit bien être calculé +# on verifie d'abord que le mot clef doit bien etre calcule if self.dico_mot_depend.has_key(mot) : if self.cherche_dependance(mot) == 0 : continue