]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Get back Destroy() function, add notification that this function is obsolete.
authorvsr <vsr@opencascade.com>
Fri, 25 Mar 2011 07:56:20 +0000 (07:56 +0000)
committervsr <vsr@opencascade.com>
Fri, 25 Mar 2011 07:56:20 +0000 (07:56 +0000)
src/Container/SALOME_PyNode.py

index d501223df154bff1d6296cc85a2521939b5d301c..df2cf1be6ec0a88cc30a68745fa084a8c9110133 100644 (file)
@@ -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):