X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Forbmodule.py;h=dc280ce8169eaa1a2036c6092c74e7cb0b888362;hb=32cb9f7cf3440f3c495de75632b4cefbd23298a2;hp=32c38280436ff81d653cdc0221240b937ec4c2a7;hpb=d4617a5edb41e7acd4025a2b56160ae267ede7f6;p=modules%2Fkernel.git diff --git a/bin/orbmodule.py b/bin/orbmodule.py index 32c382804..dc280ce81 100755 --- a/bin/orbmodule.py +++ b/bin/orbmodule.py @@ -50,7 +50,7 @@ class client: def initNS(self,args): # Obtain a reference to the root naming context - obj = self.orb.resolve_initial_references("NameService") + obj = self.orb.resolve_initial_references("NameService") try: self.rootContext = obj._narrow(CosNaming.NamingContext) return @@ -89,6 +89,12 @@ class client: # -------------------------------------------------------------------------- def showNScontext(self,context,dec=''): + if not context: + print "[NS] No context" + return + else: + print context + bl,bi=context.list(0) if bi is not None: ok,b=bi.next_one()