[omniORB] How to do TypeCodes in omniORBpy?

Gary D. Duzan gdd0@gte.com
Thu, 12 Apr 2001 11:11:05 -0400


In Message <20010412105535.A17935@mediaone.net> ,
   Craig Rodrigues <rodrigc@mediaone.net> wrote:

=>Hi,
=>
=>I am reading the Python Language Mapping at:
=>http://cgi.omg.org/cgi-bin/doc?formal/01-02-66
=>
=>and am trying to figure out how TypeCodes work.
=>
=>Section 1.3.8 is a bit vague about TypeCodes
=>for basic IDL types.
=>
=>Is CORBA.tk_string the typecode for a string?
=>Or is it CORBA.TCKind.tk_string?

   Since TCKind is an enum, you'll want to look at section 1.3.3,
the mapping for enumeration types. It states that the enum constants
are injected into the namespace enclosing it, so you'll want to
use "CORBA.tk_*". You can verify this is the case in omniORBpy using:

	from omniORB import CORBA
	dir(CORBA)

That omniORBpy even includes a CORBA.TCKind object in its implementation
would appear to be an extension, since it isn't mentioned in the
mapping.

					Gary Duzan
					Verizon IT