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
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 =
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
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
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
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)
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