def find_all_objects(self, ObjectClass, **kwargs):

        # Convert each name/value pair in 'kwargs' into a filter
        query = ObjectClass.query
        for field_name, field_value in kwargs.items():

            # Make sure that ObjectClass has a 'field_name' property
            field = getattr(ObjectClass, field_name, None)
            if field is None:
                raise KeyError("SQLAlchemyAdapter.find_first_object(): Class '%s' has no field '%s'." % (ObjectClass, field_name))

            # Add a filter to the query
            query = query.filter(field.in_((field_value,)))

        # Execute query
        return query.all()
Retrieve all objects matching the case sensitive filters in 'kwargs'.
dataset/ETHPy150Open lingthio/Flask-User/flask_user/db_adapters.py/SQLAlchemyAdapter.find_all_objects