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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -