Back to index

salome-kernel  6.5.0
Functions | Variables
waitContainers Namespace Reference

Functions

def waitContainer

Variables

tuple clt = orbmodule.client()
tuple obj = clt.orb.resolve_initial_references("NameService")
tuple rootContext = obj._narrow(CosNaming.NamingContext)
list cname = []
tuple ccontext = rootContext.resolve(cname)

Function Documentation

def waitContainers.waitContainer (   mycont)

Definition at line 55 of file waitContainers.py.

00055 
00056 def waitContainer(mycont):
00057   while(1):
00058     bl,bi=ccontext.list(0)
00059     if bi is not None:
00060       ok,b=bi.next_one()
00061       while(ok):
00062         for s in b.binding_name :
00063           if s.kind == "dir":
00064             obj=ccontext.resolve([s])
00065             scontext = obj._narrow(CosNaming.NamingContext)
00066             bll,bii=scontext.list(0)
00067             if bii is not None:
00068               ok,bb=bii.next_one()
00069               while(ok):
00070                 for s in bb.binding_name :
00071                    if s.id == mycont:
00072                      print s.id
00073                      return
00074                 ok,bb=bii.next_one()
00075         ok,b=bi.next_one()
00076     sys.stdout.write('+')
00077     sys.stdout.flush()
00078     time.sleep(1)


Variable Documentation

tuple waitContainers.ccontext = rootContext.resolve(cname)

Definition at line 44 of file waitContainers.py.

Definition at line 35 of file waitContainers.py.

Definition at line 39 of file waitContainers.py.

tuple waitContainers.obj = clt.orb.resolve_initial_references("NameService")

Definition at line 37 of file waitContainers.py.

tuple waitContainers.rootContext = obj._narrow(CosNaming.NamingContext)

Definition at line 38 of file waitContainers.py.