I think I found it - didn't expect to get lucky so quickly...
class DummyData(db.Model):
x = db.StringListProperty()
y = db.StringProperty()
class Dummy(webapp.RequestHandler):
def get(self):
d = DummyData()
d.x = ['a','b','c']
d.y = 'test'
d
Thanks, Andy. You are correct, my mistake. I saw some strange behavior
with the data that I was working with and I couldn't figure why the
return values made sense for the query. There I had StringProperty
instead of TextProperty. I thought I will construct a quick example
and made the mistake of
Don't use in, just use equal:
q = db.GqlQuery("SELECT * FROM DummyData where x = 'c' and x = 'a'")
And you can read this document:
http://code.google.com/intl/zh-CN/appengine/docs/python/datastore/entitiesandmodels.html#Lists
2009/4/19 ecognium
>
> Hello everyone, I noticed an odd behavior with
db.TextProperty is not an indexable property. That means that it's
not queryable either.
It would be nice if to get an exception or some other indication of
what's going on.
However, note that "indexable" is something that happens in the
datastore when an instance is store. If you change a pro