Ignore:
Timestamp:
25 Oct 2012, 22:45:08 (12 years ago)
Author:
Henrik Bettermann
Message:

Let's add at least one successful row with imported level_session. checkConversion had to be fixed because level_session was a string.

File:
1 edited

Legend:

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

    r9420 r9421  
    623623        # the parent studylevel exists and if its level_session
    624624        # attribute corresponds with the expected value in row.
    625         level_session = row.get('level_session', IGNORE_MARKER)
    626         if level_session not in (IGNORE_MARKER, ''):
     625        level_session = conv_dict.get('level_session', IGNORE_MARKER)
     626        if level_session not in (IGNORE_MARKER, None):
    627627            site = grok.getSite()
    628628            studylevel = self.getParent(row, site)
Note: See TracChangeset for help on using the changeset viewer.