In GAE http://code.google.com/appengine/,你能查一下User http://code.google.com/appengine/docs/python/users/userclass.html与 User 对象的user_id
?
换句话说,是否存在相当于:
from google.appengine.api.users import User
user = User.get_by_id(user_id)
我不这么认为。
...他们当然不会只让您访问谷歌帐户的每个持有者!
这个想法是,一旦用户登录到您的应用程序,您就将用户 ID 作为属性存储在数据存储中。
有一种称为 UserProperty 的属性类型
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html
因此,您可以从您自己的数据存储定义中查询用户列表。
hth
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)