]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Adding use of Info observer informations
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 30 Sep 2012 19:32:25 +0000 (21:32 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 30 Sep 2012 19:32:25 +0000 (21:32 +0200)
src/daEficas/generator_adao.py

index e0eb7e6b77db4704fbbd4cbdf04ba4c40c54f0ae..924d4b9d478ea2cbbb4ad72d938280881b449991 100644 (file)
@@ -334,6 +334,8 @@ class AdaoGenerator(PythonGenerator):
         self.text_da += "observers[\"" + observer + "\"][\"Script\"] = \"" + observers[observer]["file"] + "\"\n"
       if "scheduler" in observers[observer].keys():
         self.text_da += "observers[\"" + observer + "\"][\"scheduler\"] = \"\"\"" + observers[observer]["scheduler"] + "\"\"\"\n"
+      if "info" in observers[observer].keys():
+        self.text_da += "observers[\"" + observer + "\"][\"info\"] = \"\"\"" + observers[observer]["info"] + "\"\"\"\n"
     self.text_da += "study_config['Observers'] = observers\n"
 
   def add_observer_in_dict(self, observer, observers):
@@ -357,6 +359,7 @@ class AdaoGenerator(PythonGenerator):
     scheduler_key_name = observer_eficas_name + "Scheduler"
     if scheduler_key_name in self.dictMCVal.keys():
       observers[observer]["scheduler"] = self.dictMCVal[scheduler_key_name]
+
     # Info
     info_key_name = observer_eficas_name + "Info"
     if info_key_name in self.dictMCVal.keys():