我遇到了跟车问题。我错过什么了吗?在
Association.all().count()
1
Association.all().fetch(1)
[Association(**{'server_url': u'server-url', 'handle': u'handle2', 'secret': 'c2VjcmV0\n', 'issued': 1242892477L, 'lifetime': 200L, 'assoc_type': u'HMAC-SHA1'})]
Association.all().filter('server_url =', 'server-url').count()
0 # expect 1
Association.all().filter('server_url =', u'server-url').count()
0 # expect 1
Association.all().filter('issued >', 0).count()
1
“服务器url”是什么属性?在
如果它是TextProperty,则不能在筛选器中使用。在
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#TextProperty
相关问题 更多 >
编程相关推荐