From b31446eb891c709ef7fe2ad969d420de021e7985 Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 23 Nov 2005 13:38:45 +0000 Subject: [PATCH] PR : _ComponentDatatType instance variable was not initialized (only local variable) --- src/SALOMEDS/SALOME_DriverPy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.2