From 058248cea685326fde9aa9bf2b15f71960aad25a Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 25 Mar 2011 07:56:20 +0000 Subject: [PATCH] Get back Destroy() function, add notification that this function is obsolete. --- src/Container/SALOME_PyNode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index d501223df..df2cf1be6 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -46,6 +46,10 @@ class Generic(SALOME__POA.GenericObj): oid=self.poa.servant_to_id(self) self.poa.deactivate_object(oid) + def Destroy(self): + print "WARNING SALOME::GenericObj::Destroy() function is obsolete! Use UnRegister() instead." + self.UnRegister() + class PyNode_i (Engines__POA.PyNode,Generic): """The implementation of the PyNode CORBA IDL""" def __init__(self, nodeName,code,poa,my_container): -- 2.39.2