def __init__(self, kwargs):
        """Initialize an instance of SqlalchemyDataLayer

        :param dict kwargs: initialization parameters of an SqlalchemyDataLayer instance
        """
        super(SqlalchemyDataLayer, self).__init__(kwargs)

        if not hasattr(self, 'session'):
            raise Exception("You must provide a session in data_layer_kwargs to use sqlalchemy data layer in {}"
                            .format(self.resource.__name__))
        if not hasattr(self, 'model'):
            raise Exception("You must provide a model in data_layer_kwargs to use sqlalchemy data layer in {}"
                            .format(self.resource.__name__))
def __init__ ( self , kwargs ) : super ( SqlalchemyDataLayer , self ) . __init__ ( kwargs ) if not hasattr ( self , 'session' ) : raise Exception ( "You must provide a session in data_layer_kwargs to use sqlalchemy data layer in {}" . format ( self . resource . __name__ ) ) if not hasattr ( self , 'model' ) : raise Exception ( "You must provide a model in data_layer_kwargs to use sqlalchemy data layer in {}" . format ( self . resource . __name__ ) )
Initialize an instance of SqlalchemyDataLayer

        :param dict kwargs: initialization parameters of an SqlalchemyDataLayer instance