simphony / simphony-common

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

Use mro instead of hardcoding CUBA labels to retrieve the parents #344

Closed stefanoborini closed 7 years ago

stefanoborini commented 7 years ago

I don't see a valid reason why we should use hardcoded labels instead of just calling

[x.cuba_key for x in inspect.getmro(Engine)[1:] if hasattr(x, "cuba_key")]

More on this regard, most of the methods that we produce in the meta classes are identical copies of the exact same method that should be enough in the base class.

stefanoborini commented 7 years ago

Fixed in #368