Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'rbe/evol-job-newparams'
[modules/kernel.git]
/
bin
/
orbmodule.py
diff --git
a/bin/orbmodule.py
b/bin/orbmodule.py
index 32c38280436ff81d653cdc0221240b937ec4c2a7..dc280ce8169eaa1a2036c6092c74e7cb0b888362 100755
(executable)
--- 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
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
try:
self.rootContext = obj._narrow(CosNaming.NamingContext)
return
@@
-89,6
+89,12
@@
class client:
# --------------------------------------------------------------------------
def showNScontext(self,context,dec=''):
# --------------------------------------------------------------------------
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()
bl,bi=context.list(0)
if bi is not None:
ok,b=bi.next_one()