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

Class OCADXMLCourseImporter

source code

Importer --+
           |
          OCADXMLCourseImporter

Import Course Data from an OCAD XML File produced by OCAD 9.

Instance Methods [hide private]
 
__init__(self, fname, finish, start, verbose=False) source code
 
import_data(self, store)
Import runner data into store.
source code
Static Methods [hide private]
 
__length(node, tag='total') source code
Class Variables [hide private]
  KNOWN_VERSIONS = '2.0.3',
  KNOWN_ROOTTAGS = 'CourseData',
  CONTROL_PATHS = './StartPoint/StartPointCode', './FinishPoint/...
Method Details [hide private]

__init__(self, fname, finish, start, verbose=False)
(Constructor)

source code 
Overrides: Importer.__init__

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)

Class Variable Details [hide private]

CONTROL_PATHS

Value:
'./StartPoint/StartPointCode', './FinishPoint/FinishPointCode', './Con\
trol/ControlCode',