]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: report corrections from occ
authorprascle <prascle>
Mon, 28 Nov 2005 10:36:48 +0000 (10:36 +0000)
committerprascle <prascle>
Mon, 28 Nov 2005 10:36:48 +0000 (10:36 +0000)
src/SALOMEDS/SALOME_DriverPy.py

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