Philip Posted September 15, 2016 Report Share Posted September 15, 2016 HI Just wondered, is it possible to share components between asset versions? I'm pretty sure I was doing this and it was working, however, I'm noticing now that its not working and I'm questioning my a sanity as to whether it ever was. If I create a Component (unmanaged location) on a AssetVersion all is good, but if I try to add the same Component to another AssetVersion, it simply transfers it. sourceAssetVersion = session.get("AssetVersion","cf0e384c-606d-4bc1-9fdd-b7983562bc32") destAssetVersion = session.get("AssetVersion","d9fdddf7-d27d-45ec-8bfb-1c95ecf97afa") destAssetVersion['components'].append(sourceAssetVersion['components'][0]) session.commit() Is this normal behaviour? thanks Phil Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted September 16, 2016 Report Share Posted September 16, 2016 Hi Philip, A component cannot be attached to several versions at the same time. There is a relation on the Component (version_id) entity that points directly to an AssetVersion. Link to comment Share on other sites More sharing options...
Philip Posted September 16, 2016 Author Report Share Posted September 16, 2016 OK Thank you for confirming. I think I must have imagined it working, and probably thought that because you can share a thumbnail you could share any component. But I guess the thumbnails are handled differently. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.