Query.filter() does not support the 'IN' operator: http://code.google.com/appengine/docs/datastore/queryclass.html#Query_filter
You need to use GQL if you want to have 'IN' in your queries. On Dec 23, 6:51 am, Chris <[email protected]> wrote: > How do you use the IN keyword? The datastore query API makes a few > mentions of it, but there are no examples. I thought it would allow > you to filter using a list, but a simple query like this fails with > the error "Filtering on lists is not supported": > > from main.models import User > q=User.all() > q.filter('username IN',['bob','joe','steve']) > results = q.fetch(10) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
