Now this is very cute :
[(f.title,f.key())
for f in db.GqlQuery("select * from Film order by title")]
See that? A GQL (query language for GAE) query object automatically supports iteration, so you can use it in a list comprehension.
Now this is very cute :
[(f.title,f.key())
for f in db.GqlQuery("select * from Film order by title")]
See that? A GQL (query language for GAE) query object automatically supports iteration, so you can use it in a list comprehension.
by
Tags:
Leave a Reply
You must be logged in to post a comment.