Ignore:
Timestamp:
26 Aug 2014, 08:49:31 (10 years ago)
Author:
Henrik Bettermann
Message:

Fix CertificateCourseProcessor?. Mandatory is not a required field
and might be missing in import files.

ToDo?: Add import tests for CertCourseProcessor?.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r11699 r11779  
    791791            # ... or order_ids.
    792792            if not len(p_id) == 19:
    793                 errs.append(('p_id','invalid length'))
     793                errs.append(('p_id','invalid format'))
    794794                return errs, inv_errs, conv_dict
    795795        return errs, inv_errs, conv_dict
  • main/waeup.kofa/trunk/src/waeup/kofa/university/batching.py

    r9826 r11779  
    390390        parent = self.getParent(row, site)
    391391        parent.addCertCourse(row['course'],
    392                             row['level'], row['mandatory'])
     392                            row['level'], row.get('mandatory',None))
     393                            # mandatory is not a required and might be missing
    393394        return
    394395
Note: See TracChangeset for help on using the changeset viewer.