OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self) |
def | __getattr__ (self, attr) |
def | write (self, data) |
def | close (self) |
def | seek (self, offset, whence=getattr(os, 'SEEK_SET', 0)) |
def | getvalue (self) |
![]() | |
def | sha (self, as_hex=False) |
Data Fields | |
buf | |
zip | |
![]() | |
sha1 | |
Remembers everything someone writes to it and generates a sha
def __init__ | ( | self | ) |
Reimplemented from Sha1Writer.
def __getattr__ | ( | self, | |
attr | |||
) |
def close | ( | self | ) |
def getvalue | ( | self | ) |
:return: string value from the current stream position to the end
def seek | ( | self, | |
offset, | |||
whence = getattr(os, 'SEEK_SET', 0) |
|||
) |
Seeking currently only supports to rewind written data Multiple writes are not supported
def write | ( | self, | |
data | |||
) |
:raise IOError: If not all bytes could be written :param data: byte object :return: length of incoming data
Reimplemented from Sha1Writer.
buf |
zip |