{
typedef sequence<octet> pickledArgs;
typedef sequence<string> listofstring;
+ interface Container;
interface PyNodeBase : SALOME::GenericObj
{
+ Container getContainer();
+
+ string getCode();
+
+ string getName();
+
/*!
This method allows to define a new global var called \a varName. This newly created var will be
set to value \a valueOfVar.
self.context["my_container"] = self.my_container
exec(ccode, self.context)
+ def getContainer(self):
+ return self.my_container
+
+ def getCode(self):
+ return self.code
+
+ def getName(self):
+ return self.nodeName
+
def defineNewCustomVar(self,varName,valueOfVar):
self.context[varName] = pickle.loads(valueOfVar)
pass
self.context={}
self.context["my_container"] = self.my_container
+ def getContainer(self):
+ return self.my_container
+
+ def getCode(self):
+ return self.code
+
+ def getName(self):
+ return self.nodeName
+
def defineNewCustomVar(self,varName,valueOfVar):
self.context[varName] = pickle.loads(valueOfVar)
pass