I'm getting the rows as a result of the select: *rows = db(query).select(*fields)* and want to display as *table = SQLTABLE(rows, _class='table')* but before displaying need to reformat based on field representation, so rendering first: *rendered_rows = rows.render()* now I simply want to display the rendered_rows, like this: *table = SQLTABLE(rendered_rows, _class='table')* which is impossible because rendered_rows is a generator. I can iterate row by row, but don't know how to use it with SQLTABLE.
Is there an easy way to transform the generator into the format that SQLTABLE understands? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/1c913a15-e00d-4551-afd1-97517eb3c047n%40googlegroups.com.