Ignore:
Timestamp:
23 Jun 2009, 10:06:45 (15 years ago)
Author:
uli
Message:

Cast some values in certificate course imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/university/facultycontainer.py

    r4335 r4340  
    77from zope.exceptions import DuplicationError
    88from zope.interface import implementedBy
    9 from waeup.csvfile import CSVFile
     9from waeup.csvfile import CSVFile, toBool
    1010from waeup.csvfile.interfaces import ICSVFile
    1111from waeup.interfaces import IFacultyContainer, IFaculty, IWAeUPCSVImporter
     
    250250            del row['certificate_code']
    251251
     252            # Type casts...
     253            row['core_or_elective'] = toBool(row['core_or_elective'])
     254           
    252255            cert.addCourseRef(course, **row)
    253256        return
Note: See TracChangeset for help on using the changeset viewer.