aaaa bbbb
2007-08-17 15:55:56 UTC
I have to use the following interface:
module A
{
[...]
struct Attr {
string name;
SomeType type;
long numericv;
string textv;
SomeType2 state;
};
typedef sequence<Attr> AttrSeq;
}
module B
{
[...]
A::RetType myFkt(
in A::Type1 ver, // Enumeration
inout A::Type2 obj,
inout A::AttrSeq theList)
raises (A::SomeException);
}
import A
import B
[...]
ret, obj, theList=obj.myFkt(A.NUMBER1, obj, theList)
will throw an BAD_PARAM_WrongPythonType exception. How
can I "cast" obj and theList to the correct type?
I have read the OMG "Python Language Mapping
Specification" but was not able to find any
information. Thanks for any help!
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
module A
{
[...]
struct Attr {
string name;
SomeType type;
long numericv;
string textv;
SomeType2 state;
};
typedef sequence<Attr> AttrSeq;
}
module B
{
[...]
A::RetType myFkt(
in A::Type1 ver, // Enumeration
inout A::Type2 obj,
inout A::AttrSeq theList)
raises (A::SomeException);
}
import A
import B
[...]
ret, obj, theList=obj.myFkt(A.NUMBER1, obj, theList)
will throw an BAD_PARAM_WrongPythonType exception. How
can I "cast" obj and theList to the correct type?
I have read the OMG "Python Language Mapping
Specification" but was not able to find any
information. Thanks for any help!
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC