| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
S3BulkImporter
Import CSV files of data to pre-populate the database. Suitable for use in Testing, Demos & Simulations
http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/PrePopulate
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Static Methods | |||
|
|||
| Properties | |
|
Inherited from |
| Method Details |
Constructor
|
Load the descriptor file and then all the import tasks in that file into the task property. The descriptor file is the file called tasks.cfg in path. The file consists of a comma separated list of: module, resource name, csv filename, xsl filename. |
Extract the details for a CSV Import Task |
Store a single import job into the tasks property *,function,filename,*extraArgs |
Execute each import job, in order |
Execute import tasks which require a custom function, such as import_role |
Import Roles from CSV |
Import Users from CSV with an import Prep |
Import RSS Feeds from CSV with an import Prep |
Import images, such as a logo or person image filename a CSV list of records and filenames tablename the name of the table idfield the field used to identify the record imagefield the field to where the image will be added Example: bi.import_image ("org_logos.csv", "org_organisation", "name", "logo") and the file org_logos.csv may look as follows id file Sahana Software Foundation sahanalogo.jpg American Red Cross icrc.gif |
Install a Font |
Import CSV files from remote servers |
Run a custom Import Script To Do: Report Errors during Script run to console better |
Import a Scheduled Task |
Import XML data using an XSLT: static/formats/<dataformat>/import.xsl Setting the source_type is possible |
Load and then execute the import jobs that are listed in the descriptor file (tasks.cfg) |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:49 2019 | http://epydoc.sourceforge.net |