Changes between Version 6 and Version 7 of DeveloperGuidelines/Web2pyInternalsAndTips


Ignore:
Timestamp:
01/05/13 08:57:43 (9 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Web2pyInternalsAndTips

    v6 v7  
    3030table.truncate()
    3131}}}
     32
     33Load table from a Rows object (e.g. as obtained by reading out the table as above) or from a list of dicts:
     34{{{
     35table.truncate()
     36for row in rows:
     37    if isinstance(row, Row):
     38        row = row.as_dict()
     39    table.insert(**row)
     40}}}
    3241=== Field ===
    3342