|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __new__ (cls, sha, type, size) |
| def | __init__ (self, *args) |
| def | binsha (self) |
| def | hexsha (self) |
| def | type (self) |
| def | type_id (self) |
| def | size (self) |
Carries information about an object in an ODB, providing information
about the binary sha of the object, the type_string as well as the uncompressed size
in bytes.
It can be accessed using tuple notation and using attribute access notation::
assert dbi[0] == dbi.binsha
assert dbi[1] == dbi.type
assert dbi[2] == dbi.size
The type is designed to be as lightweight as possible. | def __init__ | ( | self, | |
| * | args | ||
| ) |
| def __new__ | ( | cls, | |
| sha, | |||
| type, | |||
| size | |||
| ) |
| def binsha | ( | self | ) |
:return: our sha as binary, 20 bytes
| def hexsha | ( | self | ) |
:return: our sha, hex encoded, 40 bytes
| def size | ( | self | ) |
Reimplemented in ODeltaStream.
| def type | ( | self | ) |
| def type_id | ( | self | ) |