

def get_query(self, env, login):
    model = self._model
    login_field = getattr(model, self._login_field)
    return env.db.query(model).filter((login_field == login))

dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/auth.py SqlaModelAuth.get_query/original