Dessia-tech / dessia_common

GNU Lesser General Public License v2.1
1 stars 2 forks source link

Create a new class Container/DessiaObjectList/DessiaObjectContainer #712

Open GabrielJMS opened 3 weeks ago

GabrielJMS commented 3 weeks ago

**Note: for support questions, please use https://nextcloud.dessia.tech/call/hr9z9bif

I need an object that accepts a list of objects inhering from DessiaObject/SerializableObject.

Use case: when doing unittests sometimes we need to save lots of .json files to save volmdlr objects. With a Container class I can save all the objects in only one file. Today we make an workaround using VolumeModel, but this won't be accepted anymore in futures releases because we will have to restrict the type of objects that VolumeModel accepts. So, Container can accept any object inheriting from DessiaObject