tokejepsen Posted May 25, 2017 Report Share Posted May 25, 2017 Hey, I'm looking to add metadata to an entity on creation, but I seem to be getting a "maximum recursion" error. Link to comment Share on other sites More sharing options...
tokejepsen Posted May 25, 2017 Author Report Share Posted May 25, 2017 Here is a bit of code to illustrate: assetversion_data = { "version": 0, "asset": asset_entity, "task": task, "metadata": {"something": "cool"} } assetversion_entity = session.create( "AssetVersion", assetversion_data ) print assetversion_entity session.commit() Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted May 25, 2017 Report Share Posted May 25, 2017 Hi Toke, thank you for pointing this out. I've just had a support-case about this and it is on our radar. Meanwhile I'd recommend calling session.create - then do assetversion_entity['metadata'] = {...} - as that should circumvent the issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.