]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: behavior change on iterators in CosNaming, omniORB 4.0 SARGE_Port_V221_18mar05
authorprascle <prascle>
Thu, 17 Mar 2005 08:59:18 +0000 (08:59 +0000)
committerprascle <prascle>
Thu, 17 Mar 2005 08:59:18 +0000 (08:59 +0000)
bin/orbmodule.py

index 4ad7b094725276b74ce7c7d4dc10bc980b79feab..fdc254472e9a5fb5250001117863f42098337179 100755 (executable)
@@ -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()
 
    # --------------------------------------------------------------------------