cubes_lite/model/base.py
def load(cls, model_data):
        """Create an object from `model_data` which can be a dictionary or a
        string representing the attribute name.
        """

        model_data = cls.expand_model(model_data)

        if 'name' not in model_data:
            raise ModelError(
                'Model objects model require at least name to be present.'
            )

        return cls(**model_data)
Create an object from `model_data` which can be a dictionary or a
        string representing the attribute name.
        
Create an object from `model_data` which can be a dictionary or a
string representing the attribute name.
Create an object from ` model_data ` which can be a dictionary or a string representing the attribute name .
def load(cls, model_data):
        model_data = cls.expand_model(model_data)
        if 'name' not in model_data:
            raise ModelError(
                'Model objects model require at least name to be present.'
            )
        return cls(**model_data)
def load ( cls , model_data ) : model_data = cls . expand_model ( model_data ) if 'name' not in model_data : raise ModelError ( 'Model objects model require at least name to be present.' ) return cls ( ** model_data )
Create an object from `model_data` which can be a dictionary or a
string representing the attribute name.
Create an object from ` model_data ` which can be a dictionary or a string representing the attribute name .
"""Create an object from `model_data` which can be a dictionary or a
        string representing the attribute name.
        """
cls
model_data