From: vsr Date: Fri, 25 Mar 2011 07:56:20 +0000 (+0000) Subject: Get back Destroy() function, add notification that this function is obsolete. X-Git-Tag: Start_BR_19998_21191~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=058248cea685326fde9aa9bf2b15f71960aad25a;p=modules%2Fkernel.git Get back Destroy() function, add notification that this function is obsolete. --- 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):