Ignore:
Timestamp:
28 Jun 2018, 07:42:03 (7 years ago)
Author:
Henrik Bettermann
Message:

AAUE staff used the IGNORE_Marker ('<IGNORE>') in the level column for the StudentStudyLevelProcessor? in create mode. The record was successfully imported but caused a traceback in level reports. Such records are now being detected during batch processing.

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

    r14901 r15065  
    613613
    614614    def addEntry(self, obj, row, site):
     615        if IGNORE_MARKER == str(row['level']):
     616            raise FatalCSVError("Invalid level")
    615617        parent = self.getParent(row, site)
    616618        parent[str(row['level'])] = obj
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r14976 r15065  
    442442                        failed_writer, string_row, error.msg)
    443443                    continue
     444                except FatalCSVError, error:
     445                    num_warns += 1
     446                    self.writeFailedRow(
     447                        failed_writer, string_row, error.message)
     448                    continue
    444449            elif mode == 'remove':
    445450                if not self.entryExists(row, site):
Note: See TracChangeset for help on using the changeset viewer.