3 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
5 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2.1 of the License.
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
26 Test function that creates an instance of ATOMSOLV component
27 usage : atomsolv=test(clt)
29 # create an LifeCycleCORBA instance
31 lcc = LifeCycleCORBA.LifeCycleCORBA(clt.orb)
33 atomsolv = lcc.FindOrLoadComponent("FactoryServer", "ATOMSOLV")
38 if __name__ == "__main__":
40 from runSalome import *
44 # Impression arborescence Naming Service
49 print " --- registered objects tree in Naming Service ---"
51 session=clt.waitNS("/Kernel/Session")
52 catalog=clt.waitNS("/Kernel/ModulCatalog")
54 container = clt.waitNS("/Containers/" + socket.gethostname().split('.')[0] + "/FactoryServer")