]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix a bug of python implementation of SALOMEDS driver: component data type should...
authorvsr <vsr@opencascade.com>
Thu, 17 Nov 2005 15:51:31 +0000 (15:51 +0000)
committervsr <vsr@opencascade.com>
Thu, 17 Nov 2005 15:51:31 +0000 (15:51 +0000)
src/SALOMEDS/SALOME_DriverPy.py

index 8728ffae89df0e3980f14651cb732f79e4153708..d1f1c4e27b13339b45975275fb9067c59d1a44f9 100644 (file)
@@ -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