Salome HOME
CCAR:
[modules/kernel.git] / src / LifeCycleCORBA / LifeCycleCORBA.py
index e0a7ac0f3021132d087bb082685ea65b1ad21398..371affd1cef2010b1ef94424c38a9de83a33c302 100644 (file)
@@ -1,31 +1,30 @@
-#  SALOME LifeCycleC RBA : implementation of containers and engines life cycle both in Python and C++
+#  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+#  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.
 #
-#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-# 
-#  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
+#  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
 #
+#  SALOME LifeCycleC RBA : implementation of containers and engines life cycle both in Python and C++
 #  File   : LifeCycleCORBA.py
 #  Author : Paul RASCLE, EDF
 #  Module : SALOME
 #  $Header$
-
+#
 import os
 import sys
 import time
@@ -159,7 +158,7 @@ class LifeCycleCORBA:
                     pass
                 pass
             if len(machinesOK)!=0:
-                bestMachine=self._contManager.FindBest(machinesOK)
+                bestMachine=self._contManager.FindFirst(machinesOK)
                 componentNameForNS= [CosNaming.NameComponent(bestMachine,"dir"),
                                      CosNaming.NameComponent(containerName,"dir"),
                                      CosNaming.NameComponent(componentName,"object")]
@@ -176,7 +175,7 @@ class LifeCycleCORBA:
             else:
                 return None
         else:
-            bestMachine=self._contManager.FindBest(listOfMachines)
+            bestMachine=self._contManager.FindFirst(listOfMachines)
             MESSAGE("Not implemented yet ...")
             return None
         pass