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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -