def add_block(self, digest, code, data): logging.debug("adding block %s %s %s" % (base64.b64encode(digest), Container.code_name(code), data)) self.block_manager.add_block(digest, code, data) self.blocks.append((digest, code, data, self.container))
def loaded(self, digest, code, data): assert code == Container.CODE_HEADER container_index = Container.decode_piggyback_container_index(digest) self.headers[container_index] = data