_libSALOME_LifeCycleCORBA_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES)
_libSALOME_LifeCycleCORBA_la_CPPFLAGS =\
@PYTHON_INCLUDES@ \
- -I$(srcdir) -I$(srcdir)/../LifeCycleCORBA \
+ -I$(srcdir) \
+ -I$(srcdir)/../NamingService \
+ -I$(srcdir)/../LifeCycleCORBA \
-I$(srcdir)/../Basics \
-I$(srcdir)/../SALOMELocalTrace \
-I$(srcdir)/../Utils \
%{
#include "utilities.h"
#include "SALOME_LifeCycleCORBA.hxx"
-
+#include "SALOME_NamingService.hxx"
+#include "ServiceUnreachable.hxx"
using namespace std;
%}
+%exception {
+ try {
+ $action
+ }
+ catch (ServiceUnreachable) {
+ PyErr_SetString(PyExc_RuntimeError,"Naming Service Unreacheable");
+ return NULL;
+ }
+ catch (...) {
+ PyErr_SetString(PyExc_RuntimeError, "unknown exception");
+ return NULL;
+ }
+}
+
+
%typemap(python,out) Engines::Container_ptr, Engines::Component_ptr
{
MESSAGE("typemap out on CORBA object ptr");
{
//printf("typemap in on Engines::MachineParameters\n");
MESSAGE("typemap in on Engines::MachineParameters");
- //ASSERT (PyDict_Check($input))
if (PyDict_Check($input) == 1)
{
Engines::MachineParameters *param = new Engines::MachineParameters ;
}
else
{
- //printf("pas un dico\n");
MESSAGE("Not a dictionnary");
- PyErr_SetString(PyExc_TypeError,"MustBe a Python Dictionnary");
+ PyErr_SetString(PyExc_TypeError,"Must Be a Python Dictionnary");
return NULL;
}
}