data/registry_model/manifestbuilder.py
def assign_layer_blob(self, layer, blob, computed_checksums):
        """
        Assigns a blob to a layer.
        """
        assert blob
        assert not blob.uploading

        repo_image = model.image.get_image_by_db_id(layer.db_id)
        if repo_image is None:
            return None

        with db_transaction():
            existing_storage = repo_image.storage
            repo_image.storage = blob._db_id
            repo_image.save()

            if existing_storage.uploading:
                self._builder_state.temp_storages.append(existing_storage.id)

        self._builder_state.checksums[layer.layer_id] = computed_checksums
        self._save_to_session()
        return True

        Assigns a blob to a layer.
        
Assigns a blob to a layer.
Assigns a blob to a layer .
def assign_layer_blob(self, layer, blob, computed_checksums):
        assert blob
        assert not blob.uploading
        repo_image = model.image.get_image_by_db_id(layer.db_id)
        if repo_image is None:
            return None
        with db_transaction():
            existing_storage = repo_image.storage
            repo_image.storage = blob._db_id
            repo_image.save()
            if existing_storage.uploading:
                self._builder_state.temp_storages.append(existing_storage.id)
        self._builder_state.checksums[layer.layer_id] = computed_checksums
        self._save_to_session()
        return True
def assign_layer_blob ( self , layer , blob , computed_checksums ) : assert blob assert not blob . uploading repo_image = model . image . get_image_by_db_id ( layer . db_id ) if repo_image is None : return None with db_transaction ( ) : existing_storage = repo_image . storage repo_image . storage = blob . _db_id repo_image . save ( ) if existing_storage . uploading : self . _builder_state . temp_storages . append ( existing_storage . id ) self . _builder_state . checksums [ layer . layer_id ] = computed_checksums self . _save_to_session ( ) return True
Assigns a blob to a layer.
Assigns a blob to a layer .
"""
        Assigns a blob to a layer.
        """
self
layer
blob
computed_checksums