From 7df1377e2625ba66313ec678579af1f2b3a1a61d Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 17 Nov 2005 15:51:31 +0000 Subject: [PATCH] Fix a bug of python implementation of SALOMEDS driver: component data type should be property of the instance but not of the class --- src/SALOMEDS/SALOME_DriverPy.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SALOMEDS/SALOME_DriverPy.py b/src/SALOMEDS/SALOME_DriverPy.py index 8728ffae8..d1f1c4e27 100644 --- a/src/SALOMEDS/SALOME_DriverPy.py +++ b/src/SALOMEDS/SALOME_DriverPy.py @@ -2,12 +2,13 @@ import SALOMEDS__POA class SALOME_DriverPy_i(SALOMEDS__POA.Driver): """ + Python implementation of generic SALOMEDS driver. + Should be inherited by any Python module's engine + to provide persistence mechanism. """ - _ComponentDataType = None - def __init__ (self, componentDataType): print "SALOME_DriverPy.__init__: ",componentDataType - _ComponentDataType = componentDataType + self._ComponentDataType = componentDataType def IORToLocalPersistentID(self, theSObject, IORString, isMultiFile, isASCII): return theSObject.GetID() @@ -16,7 +17,7 @@ class SALOME_DriverPy_i(SALOMEDS__POA.Driver): return "" def ComponentDataType(self): - return _ComponentDataType + return self._ComponentDataType def Save(self, theComponent, theURL, isMultiFile): return NULL -- 2.39.2