On Saturday, November 5, 2011 12:15:02 PM UTC-4, Bianca Cadaveri wrote:
>
> May I ask one more question ? 
>
> > web2py will pass the Row object for the record as the dictionary (the 
> Row class inherits from dictionary, so functions as a dictionary in 
> this 
> case)
>

Several rows (i.e., the result of a select) is actually a web2py Rows 
objects, which functions somewhat like a *list *of dictionaries. In fact, 
you can convert a Rows object into a list of dictionaries via:

rows.as_list()

You can also convert an individual Row object into a single dictionary via:

row.as_dict()

See http://web2py.com/book/default/chapter/06#as_dict-and-as_list.

Anthony

Reply via email to