[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread Qian Qiao
On Tue, Jan 20, 2009 at 15:58, dd wjtbo...@gmail.com wrote: Qian Qiao 写道: Have you tried the using the same filter like this? db.Query(Foo) query.filter(your_filter) HTH. -- Joe yh. i have a record like : c = Cat(name='c',year=2009,month=1) , i want to query and get this record,so i

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread djidjadji
query = Cat.all().filter('name =','c').filter('year =',2009).filter('month =',1) Gives a Query object as return, not a []. you have to fetch() or get() from this query query.fetch(limit=100) query.get() # get the first one 2009/1/20 dd wjtbo...@gmail.com: i have a record like : c =

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread Qian Qiao
On Tue, Jan 20, 2009 at 18:36, dd wjtbo...@gmail.com wrote: what means LGTM?what is your suggestion about this query? i know django can test in dos commandline, how can gae run in commandline? LGTM = looks good to me. You can fire up the dev server, then point your browser to

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread dd
Qian Qiao 写道: Hmm, the query LGTM, I can't think of anything wrong with it. Try run the same query in the the development console and see if that give you anything? -- Joe what means LGTM?what is your suggestion about this query? i know django can test in dos commandline, how can gae run

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread dd
Qian Qiao 写道: LGTM = looks good to me. You can fire up the dev server, then point your browser to http://localhost:8080/_ah/admin to see the development console, you can then your query there to see the results and, if any, error messages. oh,actually i do not know this skill,it it

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-19 Thread Qian Qiao
On Mon, Jan 19, 2009 at 11:29, potter wjtbo...@gmail.com wrote: hi, i use Foo.all.filter ,to hope to get a result list,but always is []. so why? i am sure that there are some records in db. need your help, thx. Have you tried the using the same filter like this? db.Query(Foo)

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-19 Thread dd
Qian Qiao 写道: Have you tried the using the same filter like this? db.Query(Foo) query.filter(your_filter) HTH. -- Joe yh. i have a record like : c = Cat(name='c',year=2009,month=1) , i want to query and get this record,so i use: Cat.all().filter('name =','c').filter('year