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

Public Member Functions

def __init__ (self, ref_file)
 
def update_cache (self, force=False)
 
- Public Member Functions inherited from CompoundDB
def has_object (self, sha)
 
def info (self, sha)
 
def stream (self, sha)
 
def size (self)
 
def sha_iter (self)
 
def databases (self)
 
def partial_to_complete_sha_hex (self, partial_hexsha)
 
- Public Member Functions inherited from ObjectDBR
def __contains__ (self, sha)
 
- Public Member Functions inherited from LazyMixin
def __getattr__ (self, attr)
 

Static Public Attributes

 ObjectDBCls
 

Detailed Description

A database consisting of database referred to in a file

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ref_file 
)

Member Function Documentation

◆ update_cache()

def update_cache (   self,
  force = False 
)
Call this method if the underlying data changed to trigger an update
of the internal caching structures.

:param force: if True, the update must be performed. Otherwise the implementation
    may decide not to perform an update if it thinks nothing has changed.
:return: True if an update was performed as something change indeed

Reimplemented from CompoundDB.

Field Documentation

◆ ObjectDBCls

ObjectDBCls
static

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