Loop over GqlQuery Fields, App Engine, Python -
i want output attributes , values of following gqlquery:
benchmarks = db.gqlquery("select * benchmarks")
what's easiest way loop on gqlquery , output names , values generically?
to more precise, not want this:
benchmarks = db.gqlquery("select * benchmarks") b in benchmarks: self.response.out.write("<td>name:%s</td>" % b.name) self.response.out.write("<td>id:%s</td>" % b.id)
but rather have properties of benchmark displayed, independent of name.
thanks advice!
Comments
Post a Comment