[Orbit-python-list] NameService howto?
Status: Inactive
Brought to you by:
tack
|
From: Frank R. <Fra...@we...> - 2001-05-17 16:07:26
|
Hello,
I dont understand how to connect to the nameservice of orbit.
The following shows my code:
----------------------------------------------------
import sys, CORBA
CORBA._load_idl("/usr/share/idl/name-service.idl")
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
poa = orb.resolve_initial_references("RootPOA")
service = orb.resolve_initial_references("NameService")
print orb
print poa
print service
service.list(10, seq, iter)
---------------------------------------------------
The result was:
--------------------------------------
<CORBA.ORB object at 80d85b8>
<PortableServer.POA object at 80e0738>
None
Traceback (innermost last):
File "./orbittool.py", line 13, in ?
service.list(10, seq, iter)
AttributeError: 'None' object has no attribute 'list'
-------------------------------------
I would like to list the nameservice content.
Who can help me?
cu, Frank
--
---------------------------------------------------
Frank Rehberger <fre...@cs...>
---------------------------------------------------
"Global order can arise from local interactions."
[A.Turing, 1952]
---------------------------------------------------
|