OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, cache_dir, format_control, allowed_formats) |
def | get_path_for_link (self, link) |
def | get (self, link, package_name, supported_tags) |
Data Fields | |
cache_dir | |
format_control | |
allowed_formats | |
An abstract class - provides cache directories for data from links :param cache_dir: The root of the cache. :param format_control: An object of FormatControl class to limit binaries being read from the cache. :param allowed_formats: which formats of files the cache should store. ('binary' and 'source' are the only allowed values)
def __init__ | ( | self, | |
cache_dir, | |||
format_control, | |||
allowed_formats | |||
) |
def get | ( | self, | |
link, | |||
package_name, | |||
supported_tags | |||
) |
Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented in WheelCache, and SimpleWheelCache.
def get_path_for_link | ( | self, | |
link | |||
) |
Return a directory to store cached items in for link.
Reimplemented in WheelCache, and SimpleWheelCache.
allowed_formats |
cache_dir |
format_control |