maxon.UpdatableAssetInterface¶
Description¶
An maxon.UpdatableAsset is an maxon.Asset which supports the update of its updatable references
to other assets to newer versions. Such an update doesn’t create a new repository version
of the asset because the asset definition itself isn’t changed, only the references
(represented by maxon.AssetLink) point to newer assets.
Attributes¶
Methods Signature¶
|
Updates the given references of this asset to point to the corresponding assets. |
Methods Definition¶
-
UpdatableAssetInterface.Update(updates, repository)¶ Updates the given references of this asset to point to the corresponding assets.
The references have to use updatable
maxon.AssetLinkobjects (their update policy must not be ASSET_UPDATE_POLICY.NEVER). Afterwards theAssetBaseWithUpdateInterface.GetUpdate()“update counter” is incremented.- Parameters
updates (
maxon.BaseArray[maxon.Tuple[maxon.AssetReference,maxon.AssetBase]]) – The updates to apply as a block of the references and their new targets.repository (
maxon.AssetRepositoryRef) – The repository to which this asset belongs.AssetBaseInterface.GetRepository()will be None during the update because the asset is in mutable state.