python - Google app engine: Queries -



python - Google app engine: Queries -

i have table foo foos stored , if log in via browser , list foos there 1 foo id=12. have code:

logging.info(fid) q = db.gqlquery("select * foo id = :1", fid) logging.info(list(q))

which prints

12 []

if q.fetch(4) still gives me index out of range. doing wrong? help!

read doc. can't query raw id, need create key object.

python google-app-engine

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -