From: prascle Date: Wed, 23 Nov 2005 13:38:45 +0000 (+0000) Subject: PR : _ComponentDatatType instance variable was not initialized (only local variable) X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b31446eb891c709ef7fe2ad969d420de021e7985;p=modules%2Fkernel.git PR : _ComponentDatatType instance variable was not initialized (only local variable) --- diff --git a/src/SALOMEDS/SALOME_DriverPy.py b/src/SALOMEDS/SALOME_DriverPy.py index 8728ffae8..37eb83800 100644 --- a/src/SALOMEDS/SALOME_DriverPy.py +++ b/src/SALOMEDS/SALOME_DriverPy.py @@ -3,11 +3,13 @@ import SALOMEDS__POA class SALOME_DriverPy_i(SALOMEDS__POA.Driver): """ """ + # class variable = default if instance variable is not found _ComponentDataType = None def __init__ (self, componentDataType): print "SALOME_DriverPy.__init__: ",componentDataType - _ComponentDataType = componentDataType + # instance variable : need self. + self._ComponentDataType = componentDataType def IORToLocalPersistentID(self, theSObject, IORString, isMultiFile, isASCII): return theSObject.GetID()