[Orbit-python-list] TypeCode and Anys?
Status: Inactive
Brought to you by:
tack
From: Thomas L. <loc...@fo...> - 2002-04-26 16:34:19
|
I'm looking at using python and ORBit for some applications in a large distributed realtime system (for which the primary ORB is TAO; JacORB and Mico are used also). Some of the interfaces use Anys, and I'm trying to get my first application working with them. I've got some questions (feel free to answer one or several rather than waiting for someone who knows them all ;)... I cribbed a snippet of code from the test-suite part of the orbit-python-0.3.1 tarball which packages a simple Any for return by a server. But I'm not successfully finding the type code in that example, getting an error thrown (tested with both ORBit-0.5.8 and -0.5.15). The traceback sez: tc = CORBA.TypeCode("IDL:CORBA:String/1.0") TypeError: Unregistered repoid IDL:CORBA:String/1.0 So, (1) what do I need to do to get a fundamental type code recognized? (2) How would I discover which type codes are available (in case I have a typo here)? If I was generating stubs, I'd cheat and look in the stubs for these signatures. But with the nice dynamic loading features of O-P, I don't have a static file to look at. I'm not particularly experienced with python, so newbie hints are welcome. If I try using this same call in a server object, I get a different kind of error: AttributeError: class TypeError has no attribute '__repo_id' Traceback (most recent call last): File "conflite.py", line 43, in LoadConfiguration tc = CORBA.TypeCode("IDL:CORBA:String/1.0") TypeError: Unregistered repoid IDL:CORBA:String/1.0 which I'm guessing means that I don't have my server object inheriting from the right built-in object or objects which would give me that __repo_id internal attribute. (3) Any hints on what I'm missing here? btw, O-P seems to work with the TAO naming service and with simple examples just fine. I'm looking forward to doing more... Regards. - Thomas |