[omniORB] omniORBpy-3.0 "casting" inout Parameters

aaaa bbbb yxcv2000 at yahoo.com
Fri Aug 17 03:55:36 BST 2007


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




More information about the omniORB-list mailing list