The import and export operations, discussed in Chapter 5, Import, Export, and Module Data, are also available from the ORM API, through the following methods:
- load([fields], [data]) is used to import data acquired from a CSV file. The first argument is the list of fields to import, and it maps directly to a CSV top row. The second argument is a list of records, where each record is a list of string values to parse and import, and it maps directly to the CSV data rows and columns. It implements the features of CSV data import, such as the external identifiers support. It is used by the web client Import function.
- export_data([fields], raw_data=False) is used by the web client Export function. It returns ...