From 0379b64041e798083fa27186ca8a2ced9b1bff22 Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 17 Mar 2005 08:59:18 +0000 Subject: [PATCH] PR: behavior change on iterators in CosNaming, omniORB 4.0 --- bin/orbmodule.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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() # -------------------------------------------------------------------------- -- 2.39.2