X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FContainer%2FSALOME_PyNode.py;h=2feb5d4c9ceb0ddd0efbd4c131d64df39a767c1c;hb=e61c3f5e439eae3822cb22176c5493668e5a7df5;hp=07f1f7baed934b01e21cd9244b86069575d91251;hpb=06054a4a8067ee7835f5b6c3fd57a3b029b7c3fb;p=modules%2Fkernel.git diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index 07f1f7bae..2feb5d4c9 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -1,6 +1,6 @@ #! /usr/bin/env python # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -64,6 +64,10 @@ class PyNode_i (Engines__POA.PyNode,Generic): self.context["my_container"] = self.my_container exec ccode in self.context + def defineNewCustomVar(self,varName,valueOfVar): + self.context[varName] = cPickle.loads(valueOfVar) + pass + def executeAnotherPieceOfCode(self,code): """Called for initialization of container lodging self.""" try: @@ -98,6 +102,10 @@ class PyScriptNode_i (Engines__POA.PyScriptNode,Generic): self.context={} self.context["my_container"] = self.my_container + def defineNewCustomVar(self,varName,valueOfVar): + self.context[varName] = cPickle.loads(valueOfVar) + pass + def executeAnotherPieceOfCode(self,code): """Called for initialization of container lodging self.""" try: