[omniORB] default any constructor in python

Renzo Tomaselli renzo.tomaselli at tecnotp.it
Fri Apr 8 14:20:27 BST 2005


Hi all,
    perhaps trivial, but what is the equivalent of the C++ default 
CORBA::Any constructor for OmniORBpy ?
For an IDL declaration such as: struct Foo {  ...; any value; }, any of 
the following:

a = Foo(..., CORBA.Any(CORBA.TC_null, 0))
a = Foo(..., CORBA.Any(CORBA.TC_void, 0))
a = Foo(..., None)

succeed, but later on we get "omniORB.CORBA.BAD_PARAM: Minor: 
BAD_PARAM_WrongPythonType" when marshalling a call where such Foo has 
been put into an any argument.
Nevertheless there are cases when we want to pass on an empty any, like 
we can do in C++ by default.
Thanks,

Renzo Tomaselli




More information about the omniORB-list mailing list