app/soc/logic/site/id_user.py
changeset 321 f17ecd21ca33
parent 309 7190b224c701
child 355 9b3f26057f74
equal deleted inserted replaced
320:a0a86306e7f6 321:f17ecd21ca33
    87     return True
    87     return True
    88 
    88 
    89   if not id:
    89   if not id:
    90     id = current_id
    90     id = current_id
    91 
    91 
    92   user = models.user.logic.getFromFields(email=id)
    92   user = models.user.logic.getFromFields(email=id.email())
    93 
    93 
    94   if not user:
    94   if not user:
    95     # no User entity for this Google Account, and id is not the currently
    95     # no User entity for this Google Account, and id is not the currently
    96     # logged-in user, so there is no conclusive way to check the
    96     # logged-in user, so there is no conclusive way to check the
    97     # Administration->Developers list in the App Engine console
    97     # Administration->Developers list in the App Engine console