[google-appengine] Re: GQL Query involving key string

2009-02-28 Thread Audrey M Roy
thanks bryan & bill! yes, I was using GQL because I wanted to query via the data viewer. the KEY('mykeystring') on the right-hand side not working was throwing me off. that's good to know that it works in the shell. audrey On Feb 27, 11:49 am, Bill wrote: > Audrey, > > If for some reason, yo

[google-appengine] Re: GQL Query involving key string

2009-02-27 Thread Bill
Audrey, If for some reason, you need to use GQL to lookup by key string instead of using get() like Bryan suggested, you can use KEY ('mykeystring') instead of the raw string on the right-hand side of your __key__ comparison. Full documentation is here: http://code.google.com/appengine/docs/pyth

[google-appengine] Re: GQL Query involving key string

2009-02-27 Thread Bryan A. Pendleton
You don't actually need to use GQL, just use: db.get('mykeystring') On Feb 26, 9:21 pm, Audrey M Roy wrote: > How do I write a GQL query that's something like this... > > SELECT * FROM Pet WHERE __key__='mykeystring' > > the above returns the error BadFilterError: invalid filter: __key__ > filt