-// Copyright (C) 2006-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2014 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
DEBTRACE( "---------------PyNode::loadRemote function---------------" );
if(_container)
{
- if(!_container->isAlreadyStarted(0))
+ if(!_container->isAlreadyStarted(this))
{
try
{
- _container->start(0);
+ _container->start(this);
}
catch(Exception& e)
{
throw Exception(what);
}
- Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(0);
+ Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(this);
try
{
std::string msg;
try
{
- Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(0);
+ Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(this);
CORBA::String_var logname = objContainer->logfilename();
DEBTRACE(logname);
msg=logname;
DEBTRACE( "---------------PyfuncNode::loadRemote function---------------" );
if(_container)
{
- if(!_container->isAlreadyStarted(0))
+ if(!_container->isAlreadyStarted(this))
{
try
{
- _container->start(0);
+ _container->start(this);
}
catch(Exception& e)
{
throw Exception(what);
}
- Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(0);
+ Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(this);
try
{
_pynode = objContainer->createPyNode(getName().c_str(),getScript().c_str());
std::string msg;
try
{
- Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(0);
+ Engines::Container_var objContainer=((SalomeContainer*)_container)->getContainerPtr(this);
CORBA::String_var logname = objContainer->logfilename();
DEBTRACE(logname);
msg=logname;