X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2FSalomePythonNode.cxx;h=0232073a469c89bf32d49c8b3c2b8244b18a7932;hb=fbc4862b8d9d3803c5058c2d77e341b0cc3b1313;hp=0e14a9d42d87168a1a105a8a84d715805e16bc50;hpb=f3b2b68ffecc5033287a7a255c8507f8989fb87f;p=modules%2Fyacs.git diff --git a/src/runtime/SalomePythonNode.cxx b/src/runtime/SalomePythonNode.cxx index 0e14a9d42..0232073a4 100644 --- a/src/runtime/SalomePythonNode.cxx +++ b/src/runtime/SalomePythonNode.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2006-2013 CEA/DEN, EDF R&D +// Copyright (C) 2006-2019 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 @@ -71,8 +71,8 @@ void SalomePythonNode::load() ServiceInlineNode::load(); cerr << "---------------SalomePythonNode::load function---------------" << endl; list::iterator iter; - string value2Export=((SalomePythonComponent*)_component)->getStringValueToExportInInterp(); - PyObject* ob=PyString_FromString(value2Export.c_str()); + string value2Export=((SalomePythonComponent*)_component)->getStringValueToExportInInterp(this); + PyObject* ob=PyBytes_FromString(value2Export.c_str()); PyDict_SetItemString(_context,PLACEMENT_VAR_NAME_IN_INTERP,ob); for(iter = _setOfOutputPort.begin(); iter != _setOfOutputPort.end(); iter++) { @@ -194,8 +194,8 @@ void SalomePythonNode::execute() std::string SalomePythonNode::getKind() const { - //This not a bug !!! Returns SalomeNode::KIND to be managed by SalomeContainer. - return SalomeNode::KIND; + static const char LOC_KIND[]=""; + return LOC_KIND; } Node *SalomePythonNode::simpleClone(ComposedNode *father, bool editionOnly) const