From a281b873203ab1db0a53a765876dd998f2d84053 Mon Sep 17 00:00:00 2001 From: rahuel Date: Wed, 26 Oct 2005 12:52:09 +0000 Subject: [PATCH] omniORB4 porting --- src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx b/src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx index 2c33cd8..85fc431 100644 --- a/src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx +++ b/src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx @@ -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 ) ; -- 2.30.2