Ignore:
Timestamp:
25 Jul 2012, 05:36:48 (12 years ago)
Author:
Henrik Bettermann
Message:

Export school results as strings.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py

    r9042 r9044  
    3333        'password', 'state', 'history', 'certcode')
    3434
     35    def mangle_value(self, value, name, context=None):
     36        if '_result' in name and value:
     37            value = [eval(entry.to_string()) for entry in value]
     38        return super(
     39            NigeriaStudentsExporter, self).mangle_value(
     40            value, name, context=context)
    3541
    3642class NigeriaStudentStudyCourseExporter(StudentStudyCourseExporter):
Note: See TracChangeset for help on using the changeset viewer.