We are extracting the crux of the problem from a large system, under development. ------------------------------------------------------------------------------------------------------------------------ Problem : db.UserProperty() behavior with [EMAIL PROTECTED] Vs [EMAIL PROTECTED]
Data model : Class Visitor : name = db.UserProperty() ....... ....... Assignment : user = users.GetCurrentUser() Datastore : visitor = Visitor() visitor.name = user visitor.put() Case 1: A user signs in with : [EMAIL PROTECTED] observation : visitor.name stores xxxxxxxx ( only user.nickname() ) Case 2: A user signs in with : [EMAIL PROTECTED] obsrevation : visitor.name stores [EMAIL PROTECTED] Subsequent search by : q=gqlQuery(" Select * from Visitor WHERE name = :1 " , user ) Observation : when signed in with yahoo id q gets the correct instance while signed with gmail is q gets None What mistake were we making ? In SDK : The observation is the same, excepting it allows sign in with xxxxxxxx and fetches the record. After hosting : [EMAIL PROTECTED] / just xxxxxxxxx makes no difference ; q gets none. We solved the problem by storing user.email() in an EmailProperty() and subsequently matching it with user.email() in the select statements. But we are not happy with this, as we see expert directives for not storing email addresses. Any help ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---