From: prascle Date: Thu, 17 Mar 2005 08:59:18 +0000 (+0000) Subject: PR: behavior change on iterators in CosNaming, omniORB 4.0 X-Git-Tag: SARGE_Port_V221_18mar05 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0379b64041e798083fa27186ca8a2ced9b1bff22;p=modules%2Fkernel.git PR: behavior change on iterators in CosNaming, omniORB 4.0 --- diff --git a/bin/orbmodule.py b/bin/orbmodule.py index 4ad7b0947..fdc254472 100755 --- a/bin/orbmodule.py +++ b/bin/orbmodule.py @@ -77,15 +77,16 @@ class client: def showNScontext(self,context,dec=''): bl,bi=context.list(0) - ok,b=bi.next_one() - while(ok): - for s in b.binding_name : - print "%s%s.%s" %(dec,s.id,s.kind) - if s.kind == "dir": - obj=context.resolve([s]) - scontext = obj._narrow(CosNaming.NamingContext) - self.showNScontext(scontext,dec=dec+' ') + if bi is not None: ok,b=bi.next_one() + while(ok): + for s in b.binding_name : + print "%s%s.%s" %(dec,s.id,s.kind) + if s.kind == "dir": + obj=context.resolve([s]) + scontext = obj._narrow(CosNaming.NamingContext) + self.showNScontext(scontext,dec=dec+' ') + ok,b=bi.next_one() # --------------------------------------------------------------------------