[omniORB] How to do TypeCodes in omniORBpy?
Duncan Grisby
dgrisby@uk.research.att.com
Thu, 12 Apr 2001 16:21:50 +0100
On Thursday 12 April, "Gary D. Duzan" wrote:
> 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.
The TCKind enum is declared in the standard CORBA module (pseudo) IDL,
so it appears in the Python mapping of the CORBA module. Although
enum items are not scoped by the name of the enum, omniORBpy always
has to create an entity with the relevant name, to be passed to
CORBA.id:
>>> import CORBA
>>> CORBA.id(CORBA.TCKind)
'IDL:omg.org/CORBA/TCKind:1.0'
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --