Salome HOME
[PY3] Removing TAB and encoding issue (--> UTF8)
authorNicolas Geimer <nicolas.geimer@edf.fr>
Tue, 21 Mar 2017 10:27:09 +0000 (11:27 +0100)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Tue, 21 Mar 2017 10:46:43 +0000 (11:46 +0100)
13 files changed:
NEWS
README
src/engine/Plugin/saconst.h
src/genericgui/journal
src/pyqt/gui/CONNECTOR.py
src/pyqt/gui/Tree.py
src/wrappergen/bin/Cpp_Template__SRC/src/Cpp_Template_/Cpp_Template__CXX/Cpp_Template_.hxx
src/wrappergen/bin/HXX2SALOME_GENERIC_CLASS_NAME_SRC/bin/runSalome.py
src/wrappergen/bin/HXX2SALOME_GENERIC_CLASS_NAME_SRC/src/HXX2SALOME_GENERIC_CLASS_NAMEGUI/HXX2SALOME_GENERIC_CLASS_NAME_msg_fr.po
src/wrappergen/src/HXX2SALOME_GENERIC_CLASS_NAME_SRC/bin/runSalome.py
src/wrappergen/src/HXX2SALOME_GENERIC_CLASS_NAME_SRC/src/HXX2SALOME_GENERIC_CLASS_NAMEGUI/HXX2SALOME_GENERIC_CLASS_NAME_msg_fr.po
src/wrappergen/src/parse3.awk
src/yacsloader/Test/waitContainers.py

diff --git a/NEWS b/NEWS
index f100d98cf40c3a025637ef5d88627788edf29182..5ecee04ee99bc79055ca9fb24ba89204f2ddafa3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -655,9 +655,9 @@ status--: OK
 description:
  --       Import test_schema.xml
  --       Select block node "bbb" => modify its parameters as: 
-          ·  Delete "node4" from first line
-          ·  Create new line by "+" pressing
-          ·  Add "nnode0"
+          Â·  Delete "node4" from first line
+          Â·  Create new line by "+" pressing
+          Â·  Add "nnode0"
  --       Press Apply button 
 Result: SIGSEGV
 comments: OCC: DONE
@@ -668,8 +668,8 @@ status--: OK
 description:
  --       Import test_schema_last.xml
  --       Select node "node1" => modify its parameters as: 
-          ·  Change name
-          ·  Assign new valyes to X and Y
+          Â·  Change name
+          Â·  Assign new valyes to X and Y
  --       Press Apply button 
  --       Select in 2D Viewer block node"Sb1", for which previous node belongs
 Result: SIGSEGV
diff --git a/README b/README
index 0d46d9b0e6fd4be695ac1e994d442e22c6701bba..c1d693dfc0b1feca13b55178026071bcb65f2569 100644 (file)
--- a/README
+++ b/README
@@ -4,26 +4,26 @@ YACS is for dYnamic pArallel Coupling System
 TODOlist, questions
 -------------------
 
-Les noms de noeuds devraient avoir une portée relative au bloc qui les contient,
-et pouvoir être identifiés au sein d'une hiérarchie de bloc par un nom
-construit de la même façon que pour les ports:
+Les noms de noeuds devraient avoir une portée relative au bloc qui les contient,
+et pouvoir être identifiés au sein d'une hiérarchie de bloc par un nom
+construit de la même façon que pour les ports:
 "bloc1.bloc2.noeud3"
 
-Dans quels cas faut-il créer des ports de données sur des noeuds composés ?
+Dans quels cas faut-il créer des ports de données sur des noeuds composés ?
 (Switch, boucle...).
-La création est elle faite automatiquement au niveau de l'engine ?
+La création est elle faite automatiquement au niveau de l'engine ?
 
-Fonction de vérification de la compétude d'un graphe à l'édition:
-- tous les ports de donnée entrants doivent être initialisés ou connectés.
-- inventaire des ports de donnée entrants non initialisés et non connectés.
-- faut-il vérifier quelque chose pour les gates ?
+Fonction de vérification de la compétude d'un graphe à l'édition:
+- tous les ports de donnée entrants doivent être initialisés ou connectés.
+- inventaire des ports de donnée entrants non initialisés et non connectés.
+- faut-il vérifier quelque chose pour les gates ?
 
-Regles d'ecriture C++ à definir :
+Regles d'ecriture C++ à definir :
  - pas de clause using namespace dans les .hxx
  - prefixer les attributs de classe par _
  - indentation style gnu
  - utilisation des namespace dans les cxx
-   - nom complets dans les declarations (identité avec .hxx pour doxygen)
+   - nom complets dans les declarations (identité avec .hxx pour doxygen)
 
 
 IMPROVEMENTS :
@@ -57,7 +57,7 @@ CHECKLIST:
 - test foreach4.xml problemes sporadiques (CC) sur conversions de doubles
 
 - ecriture graphe XML :
-  - ajout attribut _isComponentMethod initialisé a true pour noeuds SALOME
+  - ajout attribut _isComponentMethod initialisé a true pour noeuds SALOME
     est-ce utile ?
   - <node>/<component> dans bschema, cschema, dschema...
   - calcium*.xml
index b5608fe47129cf7868601101312bc982b1b2fb11..d2593adad2103ba3d0436e06f0fde69141ee3385 100644 (file)
@@ -41,9 +41,9 @@
 
 #define ROSENBROCK
 
-/* constante dépendant du choix de l'évaluateur */
+/* constante dépendant du choix de l'évaluateur */
 
-// nombre de paramètre
+// nombre de paramètre
 #ifdef GRIEWANK
 #define NBGENE   30
 #else
index 355a11a96d3c1dbed5b703594f3573f34f9fb2b5..1afaf3091ab038f462b065b1fa073c173596af2a 100644 (file)
@@ -23,12 +23,12 @@ x creation de liens  a la souris dans scene et arbre en drag and drop
 x sauvegarde schema en edition
 x import catalogues depuis schemas
 x insertion dans SALOME 5
-x boutons-actions zoom, panning, cadre zone à voir, reset vue, fit all
+x boutons-actions zoom, panning, cadre zone à voir, reset vue, fit all
 x proc remplit automatiquement toute la vue principale (bouton fit all)
 x bouton save ou save as au lieu de export
 x Model/view table (ports)
 x affichage etat en edition
-x dessins des liens de contrôle
+x dessins des liens de contrôle
 x gestion etude SALOME : object browser
 x design arbre (edition/execution)
 x contournement bug confirmOverwrite QFileDialog Qt 4.3.3 (corrige en 4.3.5)
@@ -84,7 +84,7 @@ x couleur differente des liens datastream
 
 - drag & drop de ports pour l'ordre dans le tableau, dans la scene
 - creation de liens par menu
-x distinguer les liens simples (sans contrôle)
+x distinguer les liens simples (sans contrôle)
 - deplacement de noeud a la souris: pouvoir passer par dessus un bloc
   (pressed + touche...) transparence, finir le deplacement que s'il y a
   la place, ou pousser le bloc ?
@@ -106,7 +106,7 @@ x distinguer les liens simples (sans contr
   - choix d'un port dans le panneau noeud -> arbre, vue
   - selection multiples (arbre, tableau vue) pour action groupee
     (deplacement scene, destruction...)
-- connexion automatique de ports avec des noeuds bord à bord
+- connexion automatique de ports avec des noeuds bord à bord
   (regle de correspondance de noms ? respect de l'ordre ?)
 - dessiner les liens avec des ponts quand des liens se croisent !
 - 2eme vue avec schema complet et cadre de la vue principale
@@ -175,7 +175,7 @@ x passage en execution: arbre pas toujours cree la premiere fois
 x message incomprehensible lors de l'ajout d'un deuxieme noeud dans un forloop
 x libelle comboBox ajout de ports dans panneau edition: folklorique (newSchema_1)
 x fermeture schema non sauvegarde : dialogues de sauvegarde
-x lien nouvellement créé droit et très fin, pas toujours visible
+x lien nouvellement créé droit et très fin, pas toujours visible
 x panneau edition function Node: controler nom de fonction saisie (validation)
 x panneau edition function Node: remonter le nom de fonction
 x remontee d'erreur en edition: le contenu de la log proc ne change pas, quand c'est en erreur
@@ -214,9 +214,9 @@ x destruction d'un lien, impact sur la disposition des noeuds
   dernier selectionne, idem pour la selection dans l'arbre
   (avec correction SchemaItem 1.8)
   lie au clearAndSelect dans SchemaItem::select (correction SchemaItem 1.8)
-- selection rubrique containers ou types: précédente selection reste dans canvas et edition
-- destruction component instance : mal repercuté (arbres, map proc...)
-- caractères accentues dans script python d'un noeud python, fichier xml mal chargé
+- selection rubrique containers ou types: précédente selection reste dans canvas et edition
+- destruction component instance : mal repercuté (arbres, map proc...)
+- caractères accentues dans script python d'un noeud python, fichier xml mal chargé
 
 - fermeture vue SALOME, object Browser pas mis a jour mais schema detruit...
 
@@ -289,20 +289,20 @@ Modes de representation du noeud
 
 - noeud elementaire
   -----------------
-  - developpé, edition   : entete + ports avec nom (valeurs = tooltip ou panneau)
+  - developpé, edition   : entete + ports avec nom (valeurs = tooltip ou panneau)
   - reduit, edition      : entete + ports sans nom
   - collapsed, edition   : entete seul (que les control link ?)
   memes vues en execution (faut il des valeurs sur les ports ?)
 
-- noeud composé
+- noeud composé
   -------------
-  - developpé, edition   : tout les internes de premier niveau visibles,
+  - developpé, edition   : tout les internes de premier niveau visibles,
                            au moins sous forme reduite
-  - macro noeud, edition : un seul macro noeud, presentation du noeud élémentaire developpé
-                           certains ports internes cachés
-                           (enrichir description IHM avec notion port privé ? ) 
-  - reduit, edition      : un seul macro noeud, presentation du noeud élémentaire réduit
-  - collapsed, édition   : entete seul
+  - macro noeud, edition : un seul macro noeud, presentation du noeud élémentaire developpé
+                           certains ports internes cachés
+                           (enrichir description IHM avec notion port privé ? ) 
+  - reduit, edition      : un seul macro noeud, presentation du noeud élémentaire réduit
+  - collapsed, édition   : entete seul
   memes vues en execution 
 
 
@@ -316,4 +316,4 @@ puis print python.
 on peut ajouter 2 methodes dans le DataFlowPort :
  recup valeur      : string fetch()
  chargement valeur : void load(string)
-à dériver dans les ports any, python, corba
+à dériver dans les ports any, python, corba
index 5514cfdccc182fc72d5ccca668fa83887a725e84..d369031737bba4f494877a85ecb445e92918d459 100644 (file)
 # -*- coding: iso-8859-15 -*-
 #
 """
-  La classe CONNECTOR sert à enregistrer les observateurs d'objets et à délivrer
-  les messages émis à ces objets.
+  La classe CONNECTOR sert à enregistrer les observateurs d'objets et à délivrer
+  les messages émis à ces objets.
 
-  Le principe général est le suivant : un objet (subscriber) s'enregistre aupres du 
+  Le principe général est le suivant : un objet (subscriber) s'enregistre aupres du 
   connecteur global (theconnector) pour observer un objet emetteur de messages (publisher) 
-  sur un canal donné (channel). Il demande à etre notifie par appel d'une fonction (listener).
-  La séquence est donc :
+  sur un canal donné (channel). Il demande à etre notifie par appel d'une fonction (listener).
+  La séquence est donc :
 
      - enregistrement du subscriber pour le publisher : theconnector.Connect(publisher,channel,listener,args)
-     - émission du message par le publisher : theconnector.Emit(publisher,channel,cargs)
+     - émission du message par le publisher : theconnector.Emit(publisher,channel,cargs)
 
-  args et cargs sont des tuples contenant les arguments de la fonction listener qui sera appelée
+  args et cargs sont des tuples contenant les arguments de la fonction listener qui sera appelée
   comme suit::
 
      listener(cargs+args)
index 4d1484b5ce8899127c916e33178d3e4f4f81655b..439a081dad04e17cb3b8a9484b7d3230c8a779af 100644 (file)
@@ -19,9 +19,9 @@
 
 # -*- coding: iso-8859-15 -*-
 #
-"""Ce module permet de créer des vues sous forme d'arbre
-   Ces vues sont construites à partir des informations
-   fournies par un modèle
+"""Ce module permet de créer des vues sous forme d'arbre
+   Ces vues sont construites à partir des informations
+   fournies par un modèle
 """
 
 import sys
index 372ea87195b7f501662ce89c3f5e5fe42e6ba618..6f4a75411abe145d19add79a71b0a623a88b81a6 100644 (file)
@@ -28,7 +28,7 @@ namespace MEDMEM {
 
 class Cpp_Template_
 {
-// Méthodes publiques
+// Méthodes publiques
 public:
     Cpp_Template_();
     MEDMEM::FIELD<double>* createField();
index d353097c47906201e72f5b521c2489be3766a554..4fcfc55bda86a357e500dbcf76f9248c11060ab0 100755 (executable)
@@ -23,33 +23,33 @@ usage="""USAGE: runSalome.py [options]
 [command line options] :
 --help                        : affichage de l'aide
 --gui                         : lancement du GUI
---logger                     : redirection des messages dans un fichier
---xterm                              : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
---modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
+--logger                      : redirection des messages dans un fichier
+--xterm                       : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
+--modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
 --containers=cpp,python,superv: lancement des containers cpp, python et de supervision
---killall                    : arrêt des serveurs de salome
+--killall                     : arrêt des serveurs de salome
 
- La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
- positionnée (modulen doit etre en majuscule).
+ La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
+ positionnée (modulen doit etre en majuscule).
  KERNEL_ROOT_DIR est obligatoire.
 """
 
 # -----------------------------------------------------------------------------
 #
-# Fonction d'arrêt de salome
+# Fonction d'arrêt de salome
 #
 
 def killSalome():
-   print "arret des serveurs SALOME"
-   for pid, cmd in process_id.items():
-      print "arret du process %s : %s"% (pid, cmd[0])
-      try:
-       os.kill(pid,signal.SIGKILL)
-      except:
-         print "  ------------------ process %s : %s inexistant"% (pid, cmd[0])
-   print "arret du naming service"
-   os.system("killall -9 omniNames")
-   
+    print "arret des serveurs SALOME"
+    for pid, cmd in process_id.items():
+        print "arret du process %s : %s"% (pid, cmd[0])
+        try:
+            os.kill(pid,signal.SIGKILL)
+        except:
+            print "  ------------------ process %s : %s inexistant"% (pid, cmd[0])
+    print "arret du naming service"
+    os.system("killall -9 omniNames")
+
 # -----------------------------------------------------------------------------
 #
 # Fonction message
@@ -76,79 +76,79 @@ with_container_python=0
 with_container_superv=0
 
 try:
-  for o, a in opts:
-    if o in ('-h', '--help'):
-      print usage
-      sys.exit(1)
-    elif o in ('-g', '--gui'):
-      with_gui=1
-    elif o in ('-l', '--logger'):
-      with_logger=1
-    elif o in ('-x', '--xterm'):
-      with_xterm=1
-    elif o in ('-m', '--modules'):
-      liste_modules = [x.upper() for x in a.split(',')]
-    elif o in ('-c', '--containers'):
-      liste_containers = [x.lower() for x in a.split(',')]
-      for r in liste_containers:
-        if r not in ('cpp', 'python', 'superv'):
-          message(1, 'Invalid -c/--containers option: %s' % a)
-      if 'cpp' in liste_containers:
-          with_container_cpp=1
-      else:
-          with_container_cpp=0
-      if 'python' in liste_containers:
-          with_container_python=1
-      else:
-          with_container_python=0
-      if 'superv' in liste_containers:
-          with_container_superv=1
-      else:
-          with_container_superv=0
-    elif o in ('-k', '--killall'):
-      filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
-      #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
-      found = 0
-      try:
-         fpid=open(filedict, 'r')
-        found = 1
-      except:
-         print "le fichier %s des process SALOME n'est pas accessible"% filedict
-
-      if found:
-         process_id=pickle.load(fpid)
-         fpid.close()
-         killSalome()
-        process_id={}
-         os.remove(filedict)
-       
+    for o, a in opts:
+        if o in ('-h', '--help'):
+            print usage
+            sys.exit(1)
+        elif o in ('-g', '--gui'):
+            with_gui=1
+        elif o in ('-l', '--logger'):
+            with_logger=1
+        elif o in ('-x', '--xterm'):
+            with_xterm=1
+        elif o in ('-m', '--modules'):
+            liste_modules = [x.upper() for x in a.split(',')]
+        elif o in ('-c', '--containers'):
+            liste_containers = [x.lower() for x in a.split(',')]
+            for r in liste_containers:
+                if r not in ('cpp', 'python', 'superv'):
+                    message(1, 'Invalid -c/--containers option: %s' % a)
+            if 'cpp' in liste_containers:
+                with_container_cpp=1
+            else:
+                with_container_cpp=0
+            if 'python' in liste_containers:
+                with_container_python=1
+            else:
+                with_container_python=0
+            if 'superv' in liste_containers:
+                with_container_superv=1
+            else:
+                with_container_superv=0
+        elif o in ('-k', '--killall'):
+            filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
+            #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
+            found = 0
+            try:
+                fpid=open(filedict, 'r')
+                found = 1
+            except:
+                print "le fichier %s des process SALOME n'est pas accessible"% filedict
+
+            if found:
+                process_id=pickle.load(fpid)
+                fpid.close()
+                killSalome()
+                process_id={}
+                os.remove(filedict)
+
 except getopt.error, msg:
-  print usage
-  sys.exit(1)
+    print usage
+    sys.exit(1)
 
 # -----------------------------------------------------------------------------
 #
-# Vérification des variables d'environnement
+# Vérification des variables d'environnement
 #
 try:
-  kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
-  modules_root_dir["KERNEL"]=kernel_root_dir
+    kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
+    modules_root_dir["KERNEL"]=kernel_root_dir
 except:
-  print usage
-  sys.exit(1)
+    print usage
+    sys.exit(1)
 
 for module in liste_modules :
-   try:
-      module=module.upper()
-      module_root_dir=os.environ[module +"_ROOT_DIR"]
-      modules_root_dir[module]=module_root_dir
-   except:
-      print usage
-      sys.exit(1)
+    try:
+        module=module.upper()
+        module_root_dir=os.environ[module +"_ROOT_DIR"]
+        modules_root_dir[module]=module_root_dir
+    except:
+        print usage
+        sys.exit(1)
 
 # il faut KERNEL en premier dans la liste des modules
 # - l'ordre des modules dans le catalogue sera identique
-# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
+# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
 #   il faut charger les modules python du KERNEL en premier
 
 if "KERNEL" in liste_modules:liste_modules.remove("KERNEL")
@@ -162,69 +162,69 @@ if "SUPERV" in liste_modules:with_container_superv=1
 
 # -----------------------------------------------------------------------------
 #
-# Définition des classes d'objets pour le lancement des Server CORBA
+# Définition des classes d'objets pour le lancement des Server CORBA
 #
 
 class Server:
-   CMD=[]
-   if with_xterm:
-       ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-e']
-   else:
-       ARGS=[] 
-
-   def run(self):
-      args = self.ARGS+self.CMD
-      #print "args = ", args
-      pid = os.spawnvp(os.P_NOWAIT, args[0], args)
-      process_id[pid]=self.CMD
+    CMD=[]
+    if with_xterm:
+        ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-e']
+    else:
+        ARGS=[]
+
+    def run(self):
+        args = self.ARGS+self.CMD
+        #print "args = ", args
+        pid = os.spawnvp(os.P_NOWAIT, args[0], args)
+        process_id[pid]=self.CMD
 
 class CatalogServer(Server):
-   SCMD1=['SALOME_ModuleCatalog_Server','-common']
-   SCMD2=['-personal','${HOME}/Salome/resources/CatalogModulePersonnel.xml'] 
-
-   def setpath(self,liste_modules):
-      cata_path=[]
-      for module in liste_modules:
-          module_root_dir=modules_root_dir[module]
-          module_cata=module+"Catalog.xml"
-          print "   ", module_cata
-          cata_path.extend(glob.glob(os.path.join(module_root_dir,"share","salome","resources",module_cata)))
-      self.CMD=self.SCMD1 + [string.join(cata_path,':')] + self.SCMD2
+    SCMD1=['SALOME_ModuleCatalog_Server','-common']
+    SCMD2=['-personal','${HOME}/Salome/resources/CatalogModulePersonnel.xml']
+
+    def setpath(self,liste_modules):
+        cata_path=[]
+        for module in liste_modules:
+            module_root_dir=modules_root_dir[module]
+            module_cata=module+"Catalog.xml"
+            print "   ", module_cata
+            cata_path.extend(glob.glob(os.path.join(module_root_dir,"share","salome","resources",module_cata)))
+        self.CMD=self.SCMD1 + [string.join(cata_path,':')] + self.SCMD2
 
 class SalomeDSServer(Server):
-   CMD=['SALOMEDS_Server']
+    CMD=['SALOMEDS_Server']
 
 class RegistryServer(Server):
-   CMD=['SALOME_Registry_Server', '--salome_session','theSession']
+    CMD=['SALOME_Registry_Server', '--salome_session','theSession']
 
 class ContainerCPPServer(Server):
-   CMD=['SALOME_Container','FactoryServer','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_Container','FactoryServer','-ORBInitRef','NameService=corbaname::localhost']
 
 class ContainerPYServer(Server):
-   CMD=['SALOME_ContainerPy.py','FactoryServerPy','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_ContainerPy.py','FactoryServerPy','-ORBInitRef','NameService=corbaname::localhost']
 
 class ContainerSUPERVServer(Server):
-   CMD=['SALOME_Container','SuperVisionContainer','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_Container','SuperVisionContainer','-ORBInitRef','NameService=corbaname::localhost']
 
 class LoggerServer(Server):
-   CMD=['SALOME_Logger_Server', 'logger.log']
+    CMD=['SALOME_Logger_Server', 'logger.log']
 
 class SessionLoader(Server):
-   CMD=['SALOME_Session_Loader']
-   if with_container_cpp:
-       CMD=CMD+['CPP']
-   if with_container_python:
-       CMD=CMD+['PY']
-   if with_container_superv:
-       CMD=CMD+['SUPERV']
-   if with_gui:
-       CMD=CMD+['GUI']
+    CMD=['SALOME_Session_Loader']
+    if with_container_cpp:
+        CMD=CMD+['CPP']
+    if with_container_python:
+        CMD=CMD+['PY']
+    if with_container_superv:
+        CMD=CMD+['SUPERV']
+    if with_gui:
+        CMD=CMD+['GUI']
 
 class SessionServer(Server):
-   CMD=['SALOME_Session_Server']
+    CMD=['SALOME_Session_Server']
 
 class NotifyServer(Server):
-   CMD=['notifd','-c','${KERNEL_ROOT_DIR}/share/salome/resources/channel.cfg -DFactoryIORFileName=/tmp/${LOGNAME}_rdifact.ior -DChannelIORFileName=/tmp/${LOGNAME}_rdichan.ior']
+    CMD=['notifd','-c','${KERNEL_ROOT_DIR}/share/salome/resources/channel.cfg -DFactoryIORFileName=/tmp/${LOGNAME}_rdifact.ior -DChannelIORFileName=/tmp/${LOGNAME}_rdichan.ior']
 
 # -----------------------------------------------------------------------------
 #
@@ -232,16 +232,16 @@ class NotifyServer(Server):
 #
 
 def test(clt):
-   """
-        Test function that creates an instance of HXX2SALOME_GENERIC_CLASS_NAME component
-        usage : hello=test(clt)
-   """
-   # create an LifeCycleCORBA instance
-   import LifeCycleCORBA 
-   lcc = LifeCycleCORBA.LifeCycleCORBA(clt.orb)
-   import HXX2SALOME_GENERIC_CLASS_NAME_ORB
-   hello = lcc.FindOrLoadComponent("FactoryServer", "HXX2SALOME_GENERIC_CLASS_NAME")
-   return hello
+    """
+         Test function that creates an instance of HXX2SALOME_GENERIC_CLASS_NAME component
+         usage : hello=test(clt)
+    """
+    # create an LifeCycleCORBA instance
+    import LifeCycleCORBA
+    lcc = LifeCycleCORBA.LifeCycleCORBA(clt.orb)
+    import HXX2SALOME_GENERIC_CLASS_NAME_ORB
+    hello = lcc.FindOrLoadComponent("FactoryServer", "HXX2SALOME_GENERIC_CLASS_NAME")
+    return hello
 
 # -----------------------------------------------------------------------------
 #
@@ -249,14 +249,14 @@ def test(clt):
 #
 
 def add_path(directory):
-   os.environ["PATH"]=directory + ":" + os.environ["PATH"]
+    os.environ["PATH"]=directory + ":" + os.environ["PATH"]
 
 def add_ld_library_path(directory):
-   os.environ["LD_LIBRARY_PATH"]=directory + ":" + os.environ["LD_LIBRARY_PATH"]
+    os.environ["LD_LIBRARY_PATH"]=directory + ":" + os.environ["LD_LIBRARY_PATH"]
 
 def add_python_path(directory):
-   os.environ["PYTHONPATH"]=directory + ":" + os.environ["PYTHONPATH"]
-   sys.path[:0]=[directory]
+    os.environ["PYTHONPATH"]=directory + ":" + os.environ["PYTHONPATH"]
+    sys.path[:0]=[directory]
 
 # -----------------------------------------------------------------------------
 #
@@ -304,221 +304,220 @@ import orbmodule
 #
 
 def startGUI():
-  import SALOME
-  session=clt.waitNS("/Kernel/Session",SALOME.Session)
+    import SALOME
+    session=clt.waitNS("/Kernel/Session",SALOME.Session)
+
+    #
+    # Activation du GUI de Session Server
+    #
+
+    session.GetInterface()
 
-  #
-  # Activation du GUI de Session Server
-  #
-       
-  session.GetInterface()
-  
 #
 # -----------------------------------------------------------------------------
 #
 
 def startSalome():
 
-  #
-  # Lancement Session Loader
-  #
-  SessionLoader().run()
-
-  #
-  # Initialisation ORB et Naming Service
-  #
-  clt=orbmodule.client()
-
-  # (non obligatoire) Lancement Logger Server et attente de sa 
-  #  disponibilite dans le naming service
-  #
-  if with_logger:
-       LoggerServer().run()
-       clt.waitLogger("Logger")
-
-  #
-  # Lancement Registry Server
-  #
-  RegistryServer().run()
-
-  #
-  # Attente de la disponibilité du Registry dans le Naming Service
-  #
-  clt.waitNS("/Registry")
-
-  #
-  # Lancement Catalog Server
-  #
-  cataServer=CatalogServer()
-  cataServer.setpath(liste_modules)
-  cataServer.run()
-
-  #
-  # Attente de la disponibilité du Catalog Server dans le Naming Service
-  #
-  import SALOME_ModuleCatalog
-  clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
-
-  #
-  # Lancement SalomeDS Server
-  #
-  os.environ["CSF_PluginDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
-  os.environ["CSF_SALOMEDS_ResourcesDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
-  SalomeDSServer().run()
-
-  if "GEOM" in liste_modules:
-       print "GEOM OCAF Resources"
-       os.environ["CSF_GEOMDS_ResourcesDefaults"]=os.path.join(modules_root_dir["GEOM"],"share","salome","resources")
-
-
-  #
-  # Attente de la disponibilité du SalomeDS dans le Naming Service
-  #
-  clt.waitNS("/myStudyManager")
-
-  #
-  # Lancement Session Server
-  #
-  SessionServer().run()
-
-  #
-  # Attente de la disponibilité du Session Server dans le Naming Service
-  #
-  import SALOME
-  session=clt.waitNS("/Kernel/Session",SALOME.Session)
-
-  #
-  # Lancement containers
-  #
-  theComputer = os.getenv("HOSTNAME")
-  theComputer = theComputer.split('.')[0]
-
-  #
-  # Lancement Container C++ local
-  #
-  if with_container_cpp:
-         ContainerCPPServer().run()
-         #
-         # Attente de la disponibilité du Container C++ local 
-          # dans le Naming Service
-         #
-         clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
-  #
-  # Lancement Container Python local
-  #
-  if with_container_python:
-         ContainerPYServer().run()
-         #
-         # Attente de la disponibilité du Container Python local 
-          #  dans le Naming Service
-         #
-         clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
-
-  if with_container_superv:
-       #
-       # Lancement Container Supervision local
-       #
-       ContainerSUPERVServer().run()
-       #
-       # Attente de la disponibilité du Container Supervision local 
+    #
+    # Lancement Session Loader
+    #
+    SessionLoader().run()
+
+    #
+    # Initialisation ORB et Naming Service
+    #
+    clt=orbmodule.client()
+
+    # (non obligatoire) Lancement Logger Server et attente de sa
+    #  disponibilite dans le naming service
+    #
+    if with_logger:
+        LoggerServer().run()
+        clt.waitLogger("Logger")
+
+    #
+    # Lancement Registry Server
+    #
+    RegistryServer().run()
+
+    #
+    # Attente de la disponibilité du Registry dans le Naming Service
+    #
+    clt.waitNS("/Registry")
+
+    #
+    # Lancement Catalog Server
+    #
+    cataServer=CatalogServer()
+    cataServer.setpath(liste_modules)
+    cataServer.run()
+
+    #
+    # Attente de la disponibilité du Catalog Server dans le Naming Service
+    #
+    import SALOME_ModuleCatalog
+    clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
+
+    #
+    # Lancement SalomeDS Server
+    #
+    os.environ["CSF_PluginDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
+    os.environ["CSF_SALOMEDS_ResourcesDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
+    SalomeDSServer().run()
+
+    if "GEOM" in liste_modules:
+        print "GEOM OCAF Resources"
+        os.environ["CSF_GEOMDS_ResourcesDefaults"]=os.path.join(modules_root_dir["GEOM"],"share","salome","resources")
+
+
+    #
+    # Attente de la disponibilité du SalomeDS dans le Naming Service
+    #
+    clt.waitNS("/myStudyManager")
+
+    #
+    # Lancement Session Server
+    #
+    SessionServer().run()
+
+    #
+    # Attente de la disponibilité du Session Server dans le Naming Service
+    #
+    import SALOME
+    session=clt.waitNS("/Kernel/Session",SALOME.Session)
+
+    #
+    # Lancement containers
+    #
+    theComputer = os.getenv("HOSTNAME")
+    theComputer = theComputer.split('.')[0]
+
+    #
+    # Lancement Container C++ local
+    #
+    if with_container_cpp:
+        ContainerCPPServer().run()
+        #
+        # Attente de la disponibilité du Container C++ local
         # dans le Naming Service
-       #
-       clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
-  #
-  # Activation du GUI de Session Server
-  #
-  #session.GetInterface()
+        #
+        clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
+    #
+    # Lancement Container Python local
+    #
+    if with_container_python:
+        ContainerPYServer().run()
+        #
+        # Attente de la disponibilité du Container Python local
+        #  dans le Naming Service
+        #
+        clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
+
+    if with_container_superv:
+        #
+        # Lancement Container Supervision local
+        #
+        ContainerSUPERVServer().run()
+        #
+        # Attente de la disponibilité du Container Supervision local
+        # dans le Naming Service
+        #
+        clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
+    #
+    # Activation du GUI de Session Server
+    #
+    #session.GetInterface()
 
-  end_time = os.times()
-  print
-  print "Start SALOME, elpased time : %5.1f seconds"% (end_time[4] - init_time[4])
+    end_time = os.times()
+    print
+    print "Start SALOME, elpased time : %5.1f seconds"% (end_time[4] - init_time[4])
 
-  return clt
+    return clt
 
 #
 # -----------------------------------------------------------------------------
 #
 
 if __name__ == "__main__":
-   clt=None
-   try:
-      clt = startSalome()
-   except:
-      print
-      print
-      print "--- erreur au lancement Salome ---"
-   
-   #print process_id
-   
-   
-   filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
-   #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
-   
-   fpid=open(filedict, 'w')
-   pickle.dump(process_id,fpid)
-   fpid.close()
-   
-   print """
-
-Sauvegarde du dictionnaire des process dans , %s
-Pour tuer les process SALOME, executer : python killSalome.py depuis
-une console, ou bien killSalome() depuis le present interpreteur,
-s'il n'est pas fermé.
-
-runSalome, avec l'option --killall, commence par tuer les process restants 
-d'une execution précédente.
-
-Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
-s'il n'est pas fermé.
-
-""" % filedict
-   
-   #
-   #  Impression arborescence Naming Service
-   #
-   
-   if clt != None:
-     print
-     print " --- registered objects tree in Naming Service ---"
-     clt.showNS()
-     session=clt.waitNS("/Kernel/Session")
-     catalog=clt.waitNS("/Kernel/ModulCatalog")
-     import socket
-     container =  clt.waitNS("/Containers/" + socket.gethostname().split('.')[0] + "/FactoryServerPy")
-   
-   if os.path.isfile("~/.salome/pystartup"):
-      f=open(os.path.expanduser("~/.salome/pystartup"),'w')
-      PYTHONSTARTUP=f.read()
-      f.close()
-   else:
-      PYTHONSTARTUP="""
-# Add auto-completion and a stored history file of commands to your Python
-# interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
-# bound to the TAB key by default (you can change it - see readline docs).
-#
-# Store the history in ~/.salome/pyhistory, 
-#
-import atexit
-import os
-import readline
-import rlcompleter
-readline.parse_and_bind('tab: complete')
+    clt=None
+    try:
+        clt = startSalome()
+    except:
+        print
+        print
+        print "--- erreur au lancement Salome ---"
+
+    #print process_id
+
+
+    filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
+    #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
+
+    fpid=open(filedict, 'w')
+    pickle.dump(process_id,fpid)
+    fpid.close()
+
+    print """
+
+ Sauvegarde du dictionnaire des process dans , %s
+ Pour tuer les process SALOME, executer : python killSalome.py depuis
+ une console, ou bien killSalome() depuis le present interpreteur,
+ s'il n'est pas fermé.
+
+ runSalome, avec l'option --killall, commence par tuer les process restants
+ d'une execution précédente.
+
+ Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
+ s'il n'est pas fermé.
+
+ """ % filedict
+
+    #
+    #  Impression arborescence Naming Service
+    #
+
+    if clt != None:
+        print
+        print " --- registered objects tree in Naming Service ---"
+        clt.showNS()
+        session=clt.waitNS("/Kernel/Session")
+        catalog=clt.waitNS("/Kernel/ModulCatalog")
+        import socket
+        container =  clt.waitNS("/Containers/" + socket.gethostname().split('.')[0] + "/FactoryServerPy")
+
+    if os.path.isfile("~/.salome/pystartup"):
+        f=open(os.path.expanduser("~/.salome/pystartup"),'w')
+        PYTHONSTARTUP=f.read()
+        f.close()
+    else:
+        PYTHONSTARTUP="""
+  # Add auto-completion and a stored history file of commands to your Python
+  # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
+  # bound to the TAB key by default (you can change it - see readline docs).
+  #
+  # Store the history in ~/.salome/pyhistory,
+  #
+  import atexit
+  import os
+  import readline
+  import rlcompleter
+  readline.parse_and_bind('tab: complete')
 
-historyPath = os.path.expanduser("~/.salome/pyhistory")
+  historyPath = os.path.expanduser("~/.salome/pyhistory")
 
-def save_history(historyPath=historyPath):
-    import readline
-    readline.write_history_file(historyPath)
+  def save_history(historyPath=historyPath):
+      import readline
+      readline.write_history_file(historyPath)
 
-if os.path.exists(historyPath):
-    readline.read_history_file(historyPath)
+  if os.path.exists(historyPath):
+      readline.read_history_file(historyPath)
 
-atexit.register(save_history)
-del os, atexit, readline, rlcompleter, save_history, historyPath
-"""
-      f=open(os.path.expanduser("~/.salome/pystartup"),'w')
-      f.write(PYTHONSTARTUP)
-      f.close()
+  atexit.register(save_history)
+  del os, atexit, readline, rlcompleter, save_history, historyPath
+  """
+        f=open(os.path.expanduser("~/.salome/pystartup"),'w')
+        f.write(PYTHONSTARTUP)
+        f.close()
 
-   exec PYTHONSTARTUP in {}
-   
+    exec PYTHONSTARTUP in {}
index 9307da0bdbfcd68913cce1338dfc2f1975b6cdda..b564b5de264d3a5754faa23132541f9009d206bf 100644 (file)
@@ -43,34 +43,34 @@ msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_TEXT"
 msgstr "Ceci est un simple test"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_CHECK"
-msgstr "Cochée"
+msgstr "Cochée"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_UNCHECK"
-msgstr "Décochée"
+msgstr "Décochée"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::RES_HXX2SALOME_GENERIC_CLASS_NAME_TITLE"
 msgstr "Dialogue example de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::RES_HXX2SALOME_GENERIC_CLASS_NAME_TEXT"
-msgstr "Les préférences sont : \n\tCase à cocher : %1\n\tEntier : %2\n\tEntier2 : %3\n\tDouble : %4\n\tTexte : %5"
+msgstr "Les préférences sont : \n\tCase à cocher : %1\n\tEntier : %2\n\tEntier2 : %3\n\tDouble : %4\n\tTexte : %5"
 
 msgid "TLT_MY_NEW_ITEM"
-msgstr "Un article de menu propre à HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Un article de menu propre à HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_MY_NEW_ITEM"
 msgstr "Mon menu"
 
 msgid "STS_MY_NEW_ITEM"
-msgstr "Affiche une boîte de dialogue simple"
+msgstr "Affiche une boîte de dialogue simple"
 
 msgid "TLT_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "STS_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_FILE"
 msgstr "&File"
@@ -89,10 +89,10 @@ msgstr "HXX2SALOME_GENERIC_CLASS_NAME"
 #-------------------------------------------------------------------------
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_TAB_GENERAL"
-msgstr "Général"
+msgstr "Général"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_GROUP_DEFAULTS"
-msgstr "Valeurs par défaut"
+msgstr "Valeurs par défaut"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_BOOL"
 msgstr "Cochez-moi"
@@ -101,19 +101,19 @@ msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_INTEGER"
 msgstr "Entrez un entier :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SPININT"
-msgstr "Cliquez sur les flèches (entier) :"
+msgstr "Cliquez sur les flèches (entier) :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SPINDBL"
-msgstr "Cliquez sur les flèches (double) :"
+msgstr "Cliquez sur les flèches (double) :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SELECTOR"
 msgstr "Choisissez une option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_0"
-msgstr "Première option"
+msgstr "Première option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_1"
 msgstr "Seconde option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_2"
-msgstr "Troisième option"
+msgstr "Troisième option"
index d353097c47906201e72f5b521c2489be3766a554..4fcfc55bda86a357e500dbcf76f9248c11060ab0 100755 (executable)
@@ -23,33 +23,33 @@ usage="""USAGE: runSalome.py [options]
 [command line options] :
 --help                        : affichage de l'aide
 --gui                         : lancement du GUI
---logger                     : redirection des messages dans un fichier
---xterm                              : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
---modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
+--logger                      : redirection des messages dans un fichier
+--xterm                       : les serveurs ouvrent une fenêtre xterm et les messages sont affichés dans cette fenêtre
+--modules=module1,module2,... : où modulen est le nom d'un module Salome à charger dans le catalogue
 --containers=cpp,python,superv: lancement des containers cpp, python et de supervision
---killall                    : arrêt des serveurs de salome
+--killall                     : arrêt des serveurs de salome
 
- La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
- positionnée (modulen doit etre en majuscule).
+ La variable d'environnement <modulen>_ROOT_DIR doit etre préalablement
+ positionnée (modulen doit etre en majuscule).
  KERNEL_ROOT_DIR est obligatoire.
 """
 
 # -----------------------------------------------------------------------------
 #
-# Fonction d'arrêt de salome
+# Fonction d'arrêt de salome
 #
 
 def killSalome():
-   print "arret des serveurs SALOME"
-   for pid, cmd in process_id.items():
-      print "arret du process %s : %s"% (pid, cmd[0])
-      try:
-       os.kill(pid,signal.SIGKILL)
-      except:
-         print "  ------------------ process %s : %s inexistant"% (pid, cmd[0])
-   print "arret du naming service"
-   os.system("killall -9 omniNames")
-   
+    print "arret des serveurs SALOME"
+    for pid, cmd in process_id.items():
+        print "arret du process %s : %s"% (pid, cmd[0])
+        try:
+            os.kill(pid,signal.SIGKILL)
+        except:
+            print "  ------------------ process %s : %s inexistant"% (pid, cmd[0])
+    print "arret du naming service"
+    os.system("killall -9 omniNames")
+
 # -----------------------------------------------------------------------------
 #
 # Fonction message
@@ -76,79 +76,79 @@ with_container_python=0
 with_container_superv=0
 
 try:
-  for o, a in opts:
-    if o in ('-h', '--help'):
-      print usage
-      sys.exit(1)
-    elif o in ('-g', '--gui'):
-      with_gui=1
-    elif o in ('-l', '--logger'):
-      with_logger=1
-    elif o in ('-x', '--xterm'):
-      with_xterm=1
-    elif o in ('-m', '--modules'):
-      liste_modules = [x.upper() for x in a.split(',')]
-    elif o in ('-c', '--containers'):
-      liste_containers = [x.lower() for x in a.split(',')]
-      for r in liste_containers:
-        if r not in ('cpp', 'python', 'superv'):
-          message(1, 'Invalid -c/--containers option: %s' % a)
-      if 'cpp' in liste_containers:
-          with_container_cpp=1
-      else:
-          with_container_cpp=0
-      if 'python' in liste_containers:
-          with_container_python=1
-      else:
-          with_container_python=0
-      if 'superv' in liste_containers:
-          with_container_superv=1
-      else:
-          with_container_superv=0
-    elif o in ('-k', '--killall'):
-      filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
-      #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
-      found = 0
-      try:
-         fpid=open(filedict, 'r')
-        found = 1
-      except:
-         print "le fichier %s des process SALOME n'est pas accessible"% filedict
-
-      if found:
-         process_id=pickle.load(fpid)
-         fpid.close()
-         killSalome()
-        process_id={}
-         os.remove(filedict)
-       
+    for o, a in opts:
+        if o in ('-h', '--help'):
+            print usage
+            sys.exit(1)
+        elif o in ('-g', '--gui'):
+            with_gui=1
+        elif o in ('-l', '--logger'):
+            with_logger=1
+        elif o in ('-x', '--xterm'):
+            with_xterm=1
+        elif o in ('-m', '--modules'):
+            liste_modules = [x.upper() for x in a.split(',')]
+        elif o in ('-c', '--containers'):
+            liste_containers = [x.lower() for x in a.split(',')]
+            for r in liste_containers:
+                if r not in ('cpp', 'python', 'superv'):
+                    message(1, 'Invalid -c/--containers option: %s' % a)
+            if 'cpp' in liste_containers:
+                with_container_cpp=1
+            else:
+                with_container_cpp=0
+            if 'python' in liste_containers:
+                with_container_python=1
+            else:
+                with_container_python=0
+            if 'superv' in liste_containers:
+                with_container_superv=1
+            else:
+                with_container_superv=0
+        elif o in ('-k', '--killall'):
+            filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
+            #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
+            found = 0
+            try:
+                fpid=open(filedict, 'r')
+                found = 1
+            except:
+                print "le fichier %s des process SALOME n'est pas accessible"% filedict
+
+            if found:
+                process_id=pickle.load(fpid)
+                fpid.close()
+                killSalome()
+                process_id={}
+                os.remove(filedict)
+
 except getopt.error, msg:
-  print usage
-  sys.exit(1)
+    print usage
+    sys.exit(1)
 
 # -----------------------------------------------------------------------------
 #
-# Vérification des variables d'environnement
+# Vérification des variables d'environnement
 #
 try:
-  kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
-  modules_root_dir["KERNEL"]=kernel_root_dir
+    kernel_root_dir=os.environ["KERNEL_ROOT_DIR"]
+    modules_root_dir["KERNEL"]=kernel_root_dir
 except:
-  print usage
-  sys.exit(1)
+    print usage
+    sys.exit(1)
 
 for module in liste_modules :
-   try:
-      module=module.upper()
-      module_root_dir=os.environ[module +"_ROOT_DIR"]
-      modules_root_dir[module]=module_root_dir
-   except:
-      print usage
-      sys.exit(1)
+    try:
+        module=module.upper()
+        module_root_dir=os.environ[module +"_ROOT_DIR"]
+        modules_root_dir[module]=module_root_dir
+    except:
+        print usage
+        sys.exit(1)
 
 # il faut KERNEL en premier dans la liste des modules
 # - l'ordre des modules dans le catalogue sera identique
-# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
+# - la liste des modules presents dans le catalogue est exploitée pour charger les modules CORBA python,
 #   il faut charger les modules python du KERNEL en premier
 
 if "KERNEL" in liste_modules:liste_modules.remove("KERNEL")
@@ -162,69 +162,69 @@ if "SUPERV" in liste_modules:with_container_superv=1
 
 # -----------------------------------------------------------------------------
 #
-# Définition des classes d'objets pour le lancement des Server CORBA
+# Définition des classes d'objets pour le lancement des Server CORBA
 #
 
 class Server:
-   CMD=[]
-   if with_xterm:
-       ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-e']
-   else:
-       ARGS=[] 
-
-   def run(self):
-      args = self.ARGS+self.CMD
-      #print "args = ", args
-      pid = os.spawnvp(os.P_NOWAIT, args[0], args)
-      process_id[pid]=self.CMD
+    CMD=[]
+    if with_xterm:
+        ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-e']
+    else:
+        ARGS=[]
+
+    def run(self):
+        args = self.ARGS+self.CMD
+        #print "args = ", args
+        pid = os.spawnvp(os.P_NOWAIT, args[0], args)
+        process_id[pid]=self.CMD
 
 class CatalogServer(Server):
-   SCMD1=['SALOME_ModuleCatalog_Server','-common']
-   SCMD2=['-personal','${HOME}/Salome/resources/CatalogModulePersonnel.xml'] 
-
-   def setpath(self,liste_modules):
-      cata_path=[]
-      for module in liste_modules:
-          module_root_dir=modules_root_dir[module]
-          module_cata=module+"Catalog.xml"
-          print "   ", module_cata
-          cata_path.extend(glob.glob(os.path.join(module_root_dir,"share","salome","resources",module_cata)))
-      self.CMD=self.SCMD1 + [string.join(cata_path,':')] + self.SCMD2
+    SCMD1=['SALOME_ModuleCatalog_Server','-common']
+    SCMD2=['-personal','${HOME}/Salome/resources/CatalogModulePersonnel.xml']
+
+    def setpath(self,liste_modules):
+        cata_path=[]
+        for module in liste_modules:
+            module_root_dir=modules_root_dir[module]
+            module_cata=module+"Catalog.xml"
+            print "   ", module_cata
+            cata_path.extend(glob.glob(os.path.join(module_root_dir,"share","salome","resources",module_cata)))
+        self.CMD=self.SCMD1 + [string.join(cata_path,':')] + self.SCMD2
 
 class SalomeDSServer(Server):
-   CMD=['SALOMEDS_Server']
+    CMD=['SALOMEDS_Server']
 
 class RegistryServer(Server):
-   CMD=['SALOME_Registry_Server', '--salome_session','theSession']
+    CMD=['SALOME_Registry_Server', '--salome_session','theSession']
 
 class ContainerCPPServer(Server):
-   CMD=['SALOME_Container','FactoryServer','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_Container','FactoryServer','-ORBInitRef','NameService=corbaname::localhost']
 
 class ContainerPYServer(Server):
-   CMD=['SALOME_ContainerPy.py','FactoryServerPy','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_ContainerPy.py','FactoryServerPy','-ORBInitRef','NameService=corbaname::localhost']
 
 class ContainerSUPERVServer(Server):
-   CMD=['SALOME_Container','SuperVisionContainer','-ORBInitRef','NameService=corbaname::localhost']
+    CMD=['SALOME_Container','SuperVisionContainer','-ORBInitRef','NameService=corbaname::localhost']
 
 class LoggerServer(Server):
-   CMD=['SALOME_Logger_Server', 'logger.log']
+    CMD=['SALOME_Logger_Server', 'logger.log']
 
 class SessionLoader(Server):
-   CMD=['SALOME_Session_Loader']
-   if with_container_cpp:
-       CMD=CMD+['CPP']
-   if with_container_python:
-       CMD=CMD+['PY']
-   if with_container_superv:
-       CMD=CMD+['SUPERV']
-   if with_gui:
-       CMD=CMD+['GUI']
+    CMD=['SALOME_Session_Loader']
+    if with_container_cpp:
+        CMD=CMD+['CPP']
+    if with_container_python:
+        CMD=CMD+['PY']
+    if with_container_superv:
+        CMD=CMD+['SUPERV']
+    if with_gui:
+        CMD=CMD+['GUI']
 
 class SessionServer(Server):
-   CMD=['SALOME_Session_Server']
+    CMD=['SALOME_Session_Server']
 
 class NotifyServer(Server):
-   CMD=['notifd','-c','${KERNEL_ROOT_DIR}/share/salome/resources/channel.cfg -DFactoryIORFileName=/tmp/${LOGNAME}_rdifact.ior -DChannelIORFileName=/tmp/${LOGNAME}_rdichan.ior']
+    CMD=['notifd','-c','${KERNEL_ROOT_DIR}/share/salome/resources/channel.cfg -DFactoryIORFileName=/tmp/${LOGNAME}_rdifact.ior -DChannelIORFileName=/tmp/${LOGNAME}_rdichan.ior']
 
 # -----------------------------------------------------------------------------
 #
@@ -232,16 +232,16 @@ class NotifyServer(Server):
 #
 
 def test(clt):
-   """
-        Test function that creates an instance of HXX2SALOME_GENERIC_CLASS_NAME component
-        usage : hello=test(clt)
-   """
-   # create an LifeCycleCORBA instance
-   import LifeCycleCORBA 
-   lcc = LifeCycleCORBA.LifeCycleCORBA(clt.orb)
-   import HXX2SALOME_GENERIC_CLASS_NAME_ORB
-   hello = lcc.FindOrLoadComponent("FactoryServer", "HXX2SALOME_GENERIC_CLASS_NAME")
-   return hello
+    """
+         Test function that creates an instance of HXX2SALOME_GENERIC_CLASS_NAME component
+         usage : hello=test(clt)
+    """
+    # create an LifeCycleCORBA instance
+    import LifeCycleCORBA
+    lcc = LifeCycleCORBA.LifeCycleCORBA(clt.orb)
+    import HXX2SALOME_GENERIC_CLASS_NAME_ORB
+    hello = lcc.FindOrLoadComponent("FactoryServer", "HXX2SALOME_GENERIC_CLASS_NAME")
+    return hello
 
 # -----------------------------------------------------------------------------
 #
@@ -249,14 +249,14 @@ def test(clt):
 #
 
 def add_path(directory):
-   os.environ["PATH"]=directory + ":" + os.environ["PATH"]
+    os.environ["PATH"]=directory + ":" + os.environ["PATH"]
 
 def add_ld_library_path(directory):
-   os.environ["LD_LIBRARY_PATH"]=directory + ":" + os.environ["LD_LIBRARY_PATH"]
+    os.environ["LD_LIBRARY_PATH"]=directory + ":" + os.environ["LD_LIBRARY_PATH"]
 
 def add_python_path(directory):
-   os.environ["PYTHONPATH"]=directory + ":" + os.environ["PYTHONPATH"]
-   sys.path[:0]=[directory]
+    os.environ["PYTHONPATH"]=directory + ":" + os.environ["PYTHONPATH"]
+    sys.path[:0]=[directory]
 
 # -----------------------------------------------------------------------------
 #
@@ -304,221 +304,220 @@ import orbmodule
 #
 
 def startGUI():
-  import SALOME
-  session=clt.waitNS("/Kernel/Session",SALOME.Session)
+    import SALOME
+    session=clt.waitNS("/Kernel/Session",SALOME.Session)
+
+    #
+    # Activation du GUI de Session Server
+    #
+
+    session.GetInterface()
 
-  #
-  # Activation du GUI de Session Server
-  #
-       
-  session.GetInterface()
-  
 #
 # -----------------------------------------------------------------------------
 #
 
 def startSalome():
 
-  #
-  # Lancement Session Loader
-  #
-  SessionLoader().run()
-
-  #
-  # Initialisation ORB et Naming Service
-  #
-  clt=orbmodule.client()
-
-  # (non obligatoire) Lancement Logger Server et attente de sa 
-  #  disponibilite dans le naming service
-  #
-  if with_logger:
-       LoggerServer().run()
-       clt.waitLogger("Logger")
-
-  #
-  # Lancement Registry Server
-  #
-  RegistryServer().run()
-
-  #
-  # Attente de la disponibilité du Registry dans le Naming Service
-  #
-  clt.waitNS("/Registry")
-
-  #
-  # Lancement Catalog Server
-  #
-  cataServer=CatalogServer()
-  cataServer.setpath(liste_modules)
-  cataServer.run()
-
-  #
-  # Attente de la disponibilité du Catalog Server dans le Naming Service
-  #
-  import SALOME_ModuleCatalog
-  clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
-
-  #
-  # Lancement SalomeDS Server
-  #
-  os.environ["CSF_PluginDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
-  os.environ["CSF_SALOMEDS_ResourcesDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
-  SalomeDSServer().run()
-
-  if "GEOM" in liste_modules:
-       print "GEOM OCAF Resources"
-       os.environ["CSF_GEOMDS_ResourcesDefaults"]=os.path.join(modules_root_dir["GEOM"],"share","salome","resources")
-
-
-  #
-  # Attente de la disponibilité du SalomeDS dans le Naming Service
-  #
-  clt.waitNS("/myStudyManager")
-
-  #
-  # Lancement Session Server
-  #
-  SessionServer().run()
-
-  #
-  # Attente de la disponibilité du Session Server dans le Naming Service
-  #
-  import SALOME
-  session=clt.waitNS("/Kernel/Session",SALOME.Session)
-
-  #
-  # Lancement containers
-  #
-  theComputer = os.getenv("HOSTNAME")
-  theComputer = theComputer.split('.')[0]
-
-  #
-  # Lancement Container C++ local
-  #
-  if with_container_cpp:
-         ContainerCPPServer().run()
-         #
-         # Attente de la disponibilité du Container C++ local 
-          # dans le Naming Service
-         #
-         clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
-  #
-  # Lancement Container Python local
-  #
-  if with_container_python:
-         ContainerPYServer().run()
-         #
-         # Attente de la disponibilité du Container Python local 
-          #  dans le Naming Service
-         #
-         clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
-
-  if with_container_superv:
-       #
-       # Lancement Container Supervision local
-       #
-       ContainerSUPERVServer().run()
-       #
-       # Attente de la disponibilité du Container Supervision local 
+    #
+    # Lancement Session Loader
+    #
+    SessionLoader().run()
+
+    #
+    # Initialisation ORB et Naming Service
+    #
+    clt=orbmodule.client()
+
+    # (non obligatoire) Lancement Logger Server et attente de sa
+    #  disponibilite dans le naming service
+    #
+    if with_logger:
+        LoggerServer().run()
+        clt.waitLogger("Logger")
+
+    #
+    # Lancement Registry Server
+    #
+    RegistryServer().run()
+
+    #
+    # Attente de la disponibilité du Registry dans le Naming Service
+    #
+    clt.waitNS("/Registry")
+
+    #
+    # Lancement Catalog Server
+    #
+    cataServer=CatalogServer()
+    cataServer.setpath(liste_modules)
+    cataServer.run()
+
+    #
+    # Attente de la disponibilité du Catalog Server dans le Naming Service
+    #
+    import SALOME_ModuleCatalog
+    clt.waitNS("/Kernel/ModulCatalog",SALOME_ModuleCatalog.ModuleCatalog)
+
+    #
+    # Lancement SalomeDS Server
+    #
+    os.environ["CSF_PluginDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
+    os.environ["CSF_SALOMEDS_ResourcesDefaults"]=os.path.join(kernel_root_dir,"share","salome","resources")
+    SalomeDSServer().run()
+
+    if "GEOM" in liste_modules:
+        print "GEOM OCAF Resources"
+        os.environ["CSF_GEOMDS_ResourcesDefaults"]=os.path.join(modules_root_dir["GEOM"],"share","salome","resources")
+
+
+    #
+    # Attente de la disponibilité du SalomeDS dans le Naming Service
+    #
+    clt.waitNS("/myStudyManager")
+
+    #
+    # Lancement Session Server
+    #
+    SessionServer().run()
+
+    #
+    # Attente de la disponibilité du Session Server dans le Naming Service
+    #
+    import SALOME
+    session=clt.waitNS("/Kernel/Session",SALOME.Session)
+
+    #
+    # Lancement containers
+    #
+    theComputer = os.getenv("HOSTNAME")
+    theComputer = theComputer.split('.')[0]
+
+    #
+    # Lancement Container C++ local
+    #
+    if with_container_cpp:
+        ContainerCPPServer().run()
+        #
+        # Attente de la disponibilité du Container C++ local
         # dans le Naming Service
-       #
-       clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
-  #
-  # Activation du GUI de Session Server
-  #
-  #session.GetInterface()
+        #
+        clt.waitNS("/Containers/" + theComputer + "/FactoryServer")
+    #
+    # Lancement Container Python local
+    #
+    if with_container_python:
+        ContainerPYServer().run()
+        #
+        # Attente de la disponibilité du Container Python local
+        #  dans le Naming Service
+        #
+        clt.waitNS("/Containers/" + theComputer + "/FactoryServerPy")
+
+    if with_container_superv:
+        #
+        # Lancement Container Supervision local
+        #
+        ContainerSUPERVServer().run()
+        #
+        # Attente de la disponibilité du Container Supervision local
+        # dans le Naming Service
+        #
+        clt.waitNS("/Containers/" + theComputer + "/SuperVisionContainer")
+    #
+    # Activation du GUI de Session Server
+    #
+    #session.GetInterface()
 
-  end_time = os.times()
-  print
-  print "Start SALOME, elpased time : %5.1f seconds"% (end_time[4] - init_time[4])
+    end_time = os.times()
+    print
+    print "Start SALOME, elpased time : %5.1f seconds"% (end_time[4] - init_time[4])
 
-  return clt
+    return clt
 
 #
 # -----------------------------------------------------------------------------
 #
 
 if __name__ == "__main__":
-   clt=None
-   try:
-      clt = startSalome()
-   except:
-      print
-      print
-      print "--- erreur au lancement Salome ---"
-   
-   #print process_id
-   
-   
-   filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
-   #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
-   
-   fpid=open(filedict, 'w')
-   pickle.dump(process_id,fpid)
-   fpid.close()
-   
-   print """
-
-Sauvegarde du dictionnaire des process dans , %s
-Pour tuer les process SALOME, executer : python killSalome.py depuis
-une console, ou bien killSalome() depuis le present interpreteur,
-s'il n'est pas fermé.
-
-runSalome, avec l'option --killall, commence par tuer les process restants 
-d'une execution précédente.
-
-Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
-s'il n'est pas fermé.
-
-""" % filedict
-   
-   #
-   #  Impression arborescence Naming Service
-   #
-   
-   if clt != None:
-     print
-     print " --- registered objects tree in Naming Service ---"
-     clt.showNS()
-     session=clt.waitNS("/Kernel/Session")
-     catalog=clt.waitNS("/Kernel/ModulCatalog")
-     import socket
-     container =  clt.waitNS("/Containers/" + socket.gethostname().split('.')[0] + "/FactoryServerPy")
-   
-   if os.path.isfile("~/.salome/pystartup"):
-      f=open(os.path.expanduser("~/.salome/pystartup"),'w')
-      PYTHONSTARTUP=f.read()
-      f.close()
-   else:
-      PYTHONSTARTUP="""
-# Add auto-completion and a stored history file of commands to your Python
-# interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
-# bound to the TAB key by default (you can change it - see readline docs).
-#
-# Store the history in ~/.salome/pyhistory, 
-#
-import atexit
-import os
-import readline
-import rlcompleter
-readline.parse_and_bind('tab: complete')
+    clt=None
+    try:
+        clt = startSalome()
+    except:
+        print
+        print
+        print "--- erreur au lancement Salome ---"
+
+    #print process_id
+
+
+    filedict='/tmp/'+os.getenv('USER')+'_SALOME_pidict'
+    #filedict='/tmp/'+os.getlogin()+'_SALOME_pidict'
+
+    fpid=open(filedict, 'w')
+    pickle.dump(process_id,fpid)
+    fpid.close()
+
+    print """
+
+ Sauvegarde du dictionnaire des process dans , %s
+ Pour tuer les process SALOME, executer : python killSalome.py depuis
+ une console, ou bien killSalome() depuis le present interpreteur,
+ s'il n'est pas fermé.
+
+ runSalome, avec l'option --killall, commence par tuer les process restants
+ d'une execution précédente.
+
+ Pour lancer uniquement le GUI, executer startGUI() depuis le present interpreteur,
+ s'il n'est pas fermé.
+
+ """ % filedict
+
+    #
+    #  Impression arborescence Naming Service
+    #
+
+    if clt != None:
+        print
+        print " --- registered objects tree in Naming Service ---"
+        clt.showNS()
+        session=clt.waitNS("/Kernel/Session")
+        catalog=clt.waitNS("/Kernel/ModulCatalog")
+        import socket
+        container =  clt.waitNS("/Containers/" + socket.gethostname().split('.')[0] + "/FactoryServerPy")
+
+    if os.path.isfile("~/.salome/pystartup"):
+        f=open(os.path.expanduser("~/.salome/pystartup"),'w')
+        PYTHONSTARTUP=f.read()
+        f.close()
+    else:
+        PYTHONSTARTUP="""
+  # Add auto-completion and a stored history file of commands to your Python
+  # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
+  # bound to the TAB key by default (you can change it - see readline docs).
+  #
+  # Store the history in ~/.salome/pyhistory,
+  #
+  import atexit
+  import os
+  import readline
+  import rlcompleter
+  readline.parse_and_bind('tab: complete')
 
-historyPath = os.path.expanduser("~/.salome/pyhistory")
+  historyPath = os.path.expanduser("~/.salome/pyhistory")
 
-def save_history(historyPath=historyPath):
-    import readline
-    readline.write_history_file(historyPath)
+  def save_history(historyPath=historyPath):
+      import readline
+      readline.write_history_file(historyPath)
 
-if os.path.exists(historyPath):
-    readline.read_history_file(historyPath)
+  if os.path.exists(historyPath):
+      readline.read_history_file(historyPath)
 
-atexit.register(save_history)
-del os, atexit, readline, rlcompleter, save_history, historyPath
-"""
-      f=open(os.path.expanduser("~/.salome/pystartup"),'w')
-      f.write(PYTHONSTARTUP)
-      f.close()
+  atexit.register(save_history)
+  del os, atexit, readline, rlcompleter, save_history, historyPath
+  """
+        f=open(os.path.expanduser("~/.salome/pystartup"),'w')
+        f.write(PYTHONSTARTUP)
+        f.close()
 
-   exec PYTHONSTARTUP in {}
-   
+    exec PYTHONSTARTUP in {}
index 9307da0bdbfcd68913cce1338dfc2f1975b6cdda..b564b5de264d3a5754faa23132541f9009d206bf 100644 (file)
@@ -43,34 +43,34 @@ msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_TEXT"
 msgstr "Ceci est un simple test"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_CHECK"
-msgstr "Cochée"
+msgstr "Cochée"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::INF_HXX2SALOME_GENERIC_CLASS_NAME_UNCHECK"
-msgstr "Décochée"
+msgstr "Décochée"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::RES_HXX2SALOME_GENERIC_CLASS_NAME_TITLE"
 msgstr "Dialogue example de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::RES_HXX2SALOME_GENERIC_CLASS_NAME_TEXT"
-msgstr "Les préférences sont : \n\tCase à cocher : %1\n\tEntier : %2\n\tEntier2 : %3\n\tDouble : %4\n\tTexte : %5"
+msgstr "Les préférences sont : \n\tCase à cocher : %1\n\tEntier : %2\n\tEntier2 : %3\n\tDouble : %4\n\tTexte : %5"
 
 msgid "TLT_MY_NEW_ITEM"
-msgstr "Un article de menu propre à HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Un article de menu propre à HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_MY_NEW_ITEM"
 msgstr "Mon menu"
 
 msgid "STS_MY_NEW_ITEM"
-msgstr "Affiche une boîte de dialogue simple"
+msgstr "Affiche une boîte de dialogue simple"
 
 msgid "TLT_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "STS_HXX2SALOME_GENERIC_CLASS_NAME_ACTION"
-msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
+msgstr "Ouvre la boîte de dialogue de HXX2SALOME_GENERIC_CLASS_NAME"
 
 msgid "MEN_FILE"
 msgstr "&File"
@@ -89,10 +89,10 @@ msgstr "HXX2SALOME_GENERIC_CLASS_NAME"
 #-------------------------------------------------------------------------
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_TAB_GENERAL"
-msgstr "Général"
+msgstr "Général"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_GROUP_DEFAULTS"
-msgstr "Valeurs par défaut"
+msgstr "Valeurs par défaut"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_BOOL"
 msgstr "Cochez-moi"
@@ -101,19 +101,19 @@ msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_INTEGER"
 msgstr "Entrez un entier :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SPININT"
-msgstr "Cliquez sur les flèches (entier) :"
+msgstr "Cliquez sur les flèches (entier) :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SPINDBL"
-msgstr "Cliquez sur les flèches (double) :"
+msgstr "Cliquez sur les flèches (double) :"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_DEFAULT_SELECTOR"
 msgstr "Choisissez une option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_0"
-msgstr "Première option"
+msgstr "Première option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_1"
 msgstr "Seconde option"
 
 msgid "HXX2SALOME_GENERIC_CLASS_NAMEGUI::PREF_LIST_TEXT_2"
-msgstr "Troisième option"
+msgstr "Troisième option"
index d9d71f8ad893c26655a1763d2b0ca98c8f27dbc6..c14d066dd0bcad67a119dd31cc44962b92cbc513 100755 (executable)
@@ -388,5 +388,5 @@ BEGIN {
 #
 #
 END {
-# CNC peut être mis dans le template directement printf "\nprivate:\n    std::auto_ptr<%s> cppImpl_;\n",class_name >> hxx_file
+# CNC peut être mis dans le template directement printf "\nprivate:\n    std::auto_ptr<%s> cppImpl_;\n",class_name >> hxx_file
 }
index c0ba0a2389803565b705496862b55c13e73158cd..7021c61105c36089ee502d32c1a4d445ed97f07c 100644 (file)
@@ -20,8 +20,7 @@
 
 import os
 import orbmodule
-import salome_utils    
+import salome_utils
 clt = orbmodule.client()
 FactoryContainer = "/Containers/" + salome_utils.getShortHostName() + "/FactoryServer"
 clt.waitNS(FactoryContainer)
-