From: vsr Date: Thu, 17 Nov 2005 15:51:31 +0000 (+0000) Subject: Fix a bug of python implementation of SALOMEDS driver: component data type should... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7df1377e2625ba66313ec678579af1f2b3a1a61d;p=modules%2Fkernel.git Fix a bug of python implementation of SALOMEDS driver: component data type should be property of the instance but not of the class --- 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