From: prascle Date: Mon, 28 Nov 2005 10:36:48 +0000 (+0000) Subject: PR: report corrections from occ X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=311ca943df6a7163099de39614409856a5efcae6;p=modules%2Fkernel.git PR: report corrections from occ --- diff --git a/src/SALOMEDS/SALOME_DriverPy.py b/src/SALOMEDS/SALOME_DriverPy.py index 37eb83800..c92c9fc33 100644 --- a/src/SALOMEDS/SALOME_DriverPy.py +++ b/src/SALOMEDS/SALOME_DriverPy.py @@ -2,13 +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. """ - # class variable = default if instance variable is not found - _ComponentDataType = None def __init__ (self, componentDataType): print "SALOME_DriverPy.__init__: ",componentDataType - # instance variable : need self. self._ComponentDataType = componentDataType def IORToLocalPersistentID(self, theSObject, IORString, isMultiFile, isASCII): @@ -18,7 +18,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