OpenQuizz
Une application de gestion des contenus pédagogiques
FileDBBase Class Reference
Inheritance diagram for FileDBBase:
Collaboration diagram for FileDBBase:

Public Member Functions

def __init__ (self, root_path)
 
def root_path (self)
 
def db_path (self, rela_path)
 

Detailed Description

Provides basic facilities to retrieve files of interest, including
caching facilities to help mapping hexsha's to objects

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ db_path()

def db_path (   self,
  rela_path 
)
:return: the given relative path relative to our database root, allowing
    to pontentially access datafiles

◆ root_path()

def root_path (   self)
:return: path at which this db operates

The documentation for this class was generated from the following file: