Data Integrator (Python API)
|
Handling of versioned data files for all modules. More...
Public Member Functions | |
def | __init__ (s, defDataVer=DEFAULT_DATA_VERSION, rootDir=DI_ROOT) |
Ctor. More... | |
def | SetDataVersion (s, version) |
Set the version string for data. More... | |
def | GetDataVersion (s) |
Get the currently set data version string. More... | |
def | GetPath (s, pathName) |
Get the data version dependent path from the configuration. More... | |
def | GetParam (s, paramName) |
Get the data version dependent parameter from the configuration. More... | |
def | GetDBVersions (s) |
Get a list of of databases and their versions. More... | |
Handling of versioned data files for all modules.
def common.Paths.CPaths.__init__ | ( | s, | |
defDataVer = DEFAULT_DATA_VERSION , |
|||
rootDir = DI_ROOT |
|||
) |
Ctor.
defDataVer | Default data version string. |
rootDir | Root directory of the repository, it must contain data directory if it is given as a relative path in the config file. |
def common.Paths.CPaths.GetDataVersion | ( | s | ) |
Get the currently set data version string.
def common.Paths.CPaths.GetDBVersions | ( | s | ) |
Get a list of of databases and their versions.
Queries the config file for versions of databases used by the currently set data version. @return @c List of 2-@c Tuples with the data base name and its version.
def common.Paths.CPaths.GetParam | ( | s, | |
paramName | |||
) |
Get the data version dependent parameter from the configuration.
@param paramName A constant PARAM_* defined above.
def common.Paths.CPaths.GetPath | ( | s, | |
pathName | |||
) |
Get the data version dependent path from the configuration.
@param pathName A constant PTH_* defined above.
def common.Paths.CPaths.SetDataVersion | ( | s, | |
version | |||
) |
Set the version string for data.
@param version This must be a section in the config file. @return @c True if the path version was set successfully, @c False if there was some error.