Salome HOME
Fix regression (Wissam's HASSAN request by e-mail).
[tools/yacsgen.git] / module_generator / hxxcompo.py
index 41aae0438ef3074bfdb4042de754e9561f33c846..32020277b1d87be5877c76f15a9f11a753ecffe1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2015  EDF R&D
+# Copyright (C) 2009-2016  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
@@ -459,7 +459,8 @@ class HXX2SALOMEComponent(Component):
       gui_xml_fr=hxxgui_xml_fr.substitute(component_name=self.name)
       gui_xml_en=hxxgui_xml_en.substitute(component_name=self.name)
       gui_salomeapp_gen=cppsalomeapp.substitute(module=self.name,
-                                                lmodule=self.name.lower())
+                                                lmodule=self.name.lower(),
+                                                version="V0")
       # for a salome component generated by hxx2salome from a c++ component, 
       # the documentation points at the c++ component documentation
       salome_doc_path=os.path.join("%"+self.name+"_ROOT_DIR%","share",
@@ -531,9 +532,9 @@ class HXX2SALOMEComponent(Component):
     services = self.getIdlServices()
     from hxx_tmpl import interfaceidlhxx
     Inherited=""
-    if compo.use_medmem==True:
+    if self.use_medmem==True:
         Inherited="Engines::EngineComponent,SALOME::MultiCommClass,SALOME_MED::MED_Gen_Driver"
     else:
         Inherited="Engines::EngineComponent"
-    return interfaceidlhxx.substitute(component=compo.name,inherited=Inherited, services="\n".join(services))
+    return interfaceidlhxx.substitute(component=self.name,inherited=Inherited, services="\n".join(services))