]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR : _ComponentDatatType instance variable was not initialized (only local variable)
authorprascle <prascle>
Wed, 23 Nov 2005 13:38:45 +0000 (13:38 +0000)
committerprascle <prascle>
Wed, 23 Nov 2005 13:38:45 +0000 (13:38 +0000)
src/SALOMEDS/SALOME_DriverPy.py

index 8728ffae89df0e3980f14651cb732f79e4153708..37eb83800295f3653bdd02f4dc51c2e5b7665664 100644 (file)
@@ -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()