OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, environment, key, checksum) |
def | reset (self) |
def | load_bytecode (self, f) |
def | write_bytecode (self, f) |
def | bytecode_from_string (self, string) |
def | bytecode_to_string (self) |
Data Fields | |
environment | |
key | |
checksum | |
code | |
Buckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions. The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation.
def __init__ | ( | self, | |
environment, | |||
key, | |||
checksum | |||
) |
def bytecode_from_string | ( | self, | |
string | |||
) |
Load bytecode from a string.
def bytecode_to_string | ( | self | ) |
Return the bytecode as string.
def load_bytecode | ( | self, | |
f | |||
) |
Loads bytecode from a file or file like object.
def reset | ( | self | ) |
Resets the bucket (unloads the bytecode).
def write_bytecode | ( | self, | |
f | |||
) |
Dump the bytecode into the file or file like object passed.
checksum |
code |
environment |
key |