simphony / simphony-common

The native implementation of the Simphony cuds objects
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Generated CUDS classes should indicate if they have compulsory arguments in the __init__ method #315

Closed tuopuu closed 7 years ago

tuopuu commented 8 years ago

Generated CUDS classes should contain a method which returns compulsory arguments of the __init__ method. It could something on the lines of:

#MaterialRelation()
...
@classmethod
def required_parameters(cls):
    return (CUBA.MATERIAL)

This information is needed when instantiating objects from yaml files.

tuopuu commented 7 years ago

We used a work-around to cope with compulsory arguments so this issue can be closed.