Package bosco :: Module importer :: Class CSVCourseImporter
[hide private]
[frames] | no frames]

Class CSVCourseImporter

source code

Importer --+    
           |    
 CSVImporter --+
               |
              CSVCourseImporter

Import courses from a CSV file. The file format is: code;length;climb;1;2;... Coursecode1;courselength1;courseclimb1;control1;control2;... Coursecode2;courselength2;courseclimb2;control1;control2;...

The first line is the header, all following lines are course definitions. All lengths are in meters.

Instance Methods [hide private]
 
import_data(self, store)
Import runner data into store.
source code

Inherited from CSVImporter: __init__

Method Details [hide private]

import_data(self, store)

source code 

Import runner data into store. Creates all the necessary objects and add them to the store, but don't commit the store.

Overrides: Importer.import_data
(inherited documentation)