Changeset 8393 for main


Ignore:
Timestamp:
9 May 2012, 11:31:01 (13 years ago)
Author:
uli
Message:

Add safety-belt. Some students in tests do not provide getLevel.

File:
1 edited

Legend:

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

    r8381 r8393  
    198198                value = getattr(student, name, None)
    199199            if name == 'level':
    200                 value = context.getLevel()
     200                value = getattr(context, 'getLevel', lambda: None)()
    201201        return super(
    202202            CourseTicketExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.