def update_object(self, object, **kwargs):
        for key,value in kwargs.items():
            if hasattr(object, key):
                setattr(object, key, value)
            else:
                raise KeyError("Object '%s' has no field '%s'." % (type(object), key))
Update object 'object' with the fields and values specified in '**kwargs'.
dataset/ETHPy150Open lingthio/Flask-User/flask_user/db_adapters.py/SQLAlchemyAdapter.update_object