X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=idl%2FSALOME_PyNode.idl;h=5faf372ac3ca3438794f0386f38fea947a8ffbb5;hb=860c1d9008d3da9754088097ec64945a50bd0084;hp=401b3b0e906e828aaf66f91bed50d5ffcbe15c45;hpb=853b75d6629174b13b922ec398e5d423cbc82dd4;p=modules%2Fkernel.git diff --git a/idl/SALOME_PyNode.idl b/idl/SALOME_PyNode.idl index 401b3b0e9..5faf372ac 100644 --- a/idl/SALOME_PyNode.idl +++ b/idl/SALOME_PyNode.idl @@ -38,26 +38,35 @@ module Engines typedef sequence pickledArgs; typedef sequence listofstring; - interface PyNode : SALOME::GenericObj + interface PyNodeBase : SALOME::GenericObj { + /*! + This methode executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this. + \param [in] codeStr - the python code (without statement) to be executed, that can modify the context initialized at initialization. + */ + void executeAnotherPieceOfCode(in string codeStr) raises (SALOME::SALOME_Exception); + }; + interface PyNode : PyNodeBase + { /*! \brief execute a python function defined in the node \param functionName the python function defined in the node to execute \param inargs input argument values (tuple,dict) provided as a python pickle \return output argument values (tuple) as a python pickle */ - pickledArgs execute(in string functionName,in pickledArgs inargs) raises (SALOME::SALOME_Exception); + pickledArgs execute(in string functionName, in pickledArgs inargs) raises (SALOME::SALOME_Exception); } ; - interface PyScriptNode : SALOME::GenericObj + interface PyScriptNode : PyNodeBase { /*! - This methode executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this. - \param [in] codeStr - the python code (without statement) to be executed, that can modify the context initialized at initialization. + This method compiles, but NOT EXECUTE, the code \a codeStr. The result of the compiled code will be used then + on execute step. + \param codeStr - the python code (without statement) to be executed, that can modify the context initialized at initialization. */ - void executeAnotherPieceOfCode(in string codeStr) raises (SALOME::SALOME_Exception); + void assignNewCompiledCode(in string codeStr) raises (SALOME::SALOME_Exception); /*! \brief execute a python script defined in the node