OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, root_path) |
def | root_path (self) |
def | db_path (self, rela_path) |
Provides basic facilities to retrieve files of interest, including caching facilities to help mapping hexsha's to objects
def __init__ | ( | self, | |
root_path | |||
) |
Initialize this instance to look for its files at the given root path All subsequent operations will be relative to this path :raise InvalidDBRoot: **Note:** The base will not perform any accessablity checking as the base might not yet be accessible, but become accessible before the first access.
Reimplemented in LooseObjectDB, PackedDB, and GitDB.
def db_path | ( | self, | |
rela_path | |||
) |
:return: the given relative path relative to our database root, allowing to pontentially access datafiles
def root_path | ( | self | ) |
:return: path at which this db operates