Salome HOME
omniORB4 porting
authorrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:52:09 +0000 (12:52 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:52:09 +0000 (12:52 +0000)
src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx

index 2c33cd87edd8040e6b2a1ee33cc2bd6c6fe4218a..85fc431b5bea453571f46a6746135542b7c1a930 100644 (file)
@@ -372,7 +372,11 @@ bool GraphExecutor::InNode::PyDynInvoke( PyObject * MyPyRunMethod ,
       case CORBA::tk_objref : {
         MyPyObjRefList = PyTuple_New( 1 ) ;
         PyObject * ObjValue ;
+#if OMNIORB_VERSION >= 4
+        data >>= (CORBA::Any::to_object ) ObjRef ;
+#else
         data >>= ObjRef ;
+#endif
         IORObjRef = ObjectToString( ObjRef ) ;
         ObjValue = Py_BuildValue( "s" , IORObjRef ) ;
         PyTuple_SetItem( MyPyObjRefList , 0 , ObjValue ) ;