]> SALOME platform Git repositories - modules/kernel.git/commit
Salome HOME
CCAR: add the PyNode object that can be created in a container
authorcaremoli <caremoli>
Thu, 8 Oct 2009 14:29:01 +0000 (14:29 +0000)
committercaremoli <caremoli>
Thu, 8 Oct 2009 14:29:01 +0000 (14:29 +0000)
commit0b2eac6aae6d431aa46b13658d078d3825281e4c
treecdf1c1077cb904ea212120db55c1cf862450f788
parentfbd8223f5fc5435c273607f3c8890be08aa1304a
CCAR: add the PyNode object that can be created in a container
to execute remote Python code.
Example from python interpreter:
import salome_pynode
code="""def f(x):
  return 2*x
"""
node=container.createPyNode("mynode",code)
y=node.execute("f",10)
idl/Makefile.am
idl/SALOME_Component.idl
idl/SALOME_PyNode.idl [new file with mode: 0644]
src/Container/Container_i.cxx
src/Container/Makefile.am
src/Container/SALOME_Container.py
src/Container/SALOME_Container_i.hxx
src/Container/SALOME_PyNode.py [new file with mode: 0644]
src/KERNEL_PY/Makefile.am
src/KERNEL_PY/salome_pynode.py [new file with mode: 0644]