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):
return ""
def ComponentDataType(self):
- return _ComponentDataType
+ return self._ComponentDataType
def Save(self, theComponent, theURL, isMultiFile):
return NULL