The return value of the db.query
method behaves like sequence, but it's basically iterator. (To be exact, it's web.utils.IterBetter
object)
Iterator in Python normally cannot go backward.
Do something with the row while you iterate it.
for row in results:
print row['EMAIL']
print row['STATUS']
or make results as sequence to random access it:
results = list(results)
print results[0]['EMAIL']
print results[0]['STATUS']