Back to index

salome-kernel  6.5.0
Public Member Functions
KERNEL_PY.salome_pynode.SmartPyNode Class Reference

List of all members.

Public Member Functions

def __init__
def execute
def __getattr__

Detailed Description

Definition at line 35 of file salome_pynode.py.


Constructor & Destructor Documentation

Definition at line 36 of file salome_pynode.py.

00036 
00037   def __init__(self):
00038     Engines._objref_PyNode.__init__(self)


Member Function Documentation

a trick to be able to call directly a remote method by its name : no need to use execute

Definition at line 48 of file salome_pynode.py.

00048 
00049   def __getattr__(self,name):
00050     """ a trick to be able to call directly a remote method by its name : no need to use execute"""
00051     if name[0]== '_':
00052       raise AttributeError, name
00053     def afunc(*args,**kws):
00054       return self.execute(name,*args,**kws)
00055     return afunc

Here is the call graph for this function:

def KERNEL_PY.salome_pynode.SmartPyNode.execute (   self,
  functionName,
  args,
  kws 
)

Definition at line 39 of file salome_pynode.py.

00039 
00040   def execute(self,functionName,*args,**kws):
00041     try:
00042       args=cPickle.dumps((args,kws),-1)
00043       results=Engines._objref_PyNode.execute(self,functionName,args)
00044       x=cPickle.loads(results)
00045       return x
00046     except SALOME.SALOME_Exception, e:
00047       raise ValueError(e.details.text)

Here is the caller graph for this function:


The documentation for this class was generated from the following file: