OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | TemporaryFileSwap |
Functions | |
def | post_clear_cache (func) |
def | default_index (func) |
def | git_working_dir (func) |
Variables | |
pack | |
unpack | |
Module containing index utilities
def git.index.util.default_index | ( | func | ) |
Decorator assuring the wrapped method may only run if we are the default repository index. This is as we rely on git commands that operate on that index only.
def git.index.util.git_working_dir | ( | func | ) |
Decorator which changes the current working dir to the one of the git repository in order to assure relative paths are handled correctly
def git.index.util.post_clear_cache | ( | func | ) |
Decorator for functions that alter the index using the git command. This would invalidate our possibly existing entries dictionary which is why it must be deleted to allow it to be lazily reread later. :note: This decorator will not be required once all functions are implemented natively which in fact is possible, but probably not feasible performance wise.
pack |
unpack |