def store(self, data, blob):
if not isinstance(data, io.IOBase):
raise NotStorable('Could not store data (not of "file").')
filename = getattr(data, 'name', None)
if filename is not None:
blob.consumeFile(filename)
return
评论列表
文章目录