Sorry guys, this post was intended for the web2py mailing list.
On Friday, October 26, 2012 9:27:16 PM UTC+2, Daniel Gonzalez wrote:
>
> Hello,
>
> I am generating some data on the fly (no database), which I would like to
> display using a controller / view. The data is organized as a list of
> dictionaries, like this:
>
> headers = [ 'header1', 'header2' ]
> data = [
> { 'col1' : 'valA', 'col2' : 'valB' },
> { 'col1' : 'valC', 'col2' : 'valD },
> ]
>
> How can I code a controller to return an already prepared table for my
> view?
>
> Thanks,
> Daniel
>
--