If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
def dicts_to_TABLE(content):
        return TABLE(
            THEAD(TR(*[TD(B(k)) for k in content[0].keys()])),
            *[TR(*[TD(v) for k, v in row.iteritems()]) for row in content]
        )

Related slices

Comments (0)


Hosting graciously provided by:
Python Anywhere