Changeset 5504 for WAeUP_SRP


Ignore:
Timestamp:
28 Aug 2010, 06:32:31 (14 years ago)
Author:
Henrik Bettermann
Message:

catch wrong reg_transition (admitted and returning) to avoid editing of import files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5456 r5504  
    885885            d = {}
    886886            transition = mapping.get('reg_transition','admit')
     887            if transition == 'admitted':
     888                transition = 'admit'
     889            elif transition == 'returning':
     890                transition = 'return'
    887891            if transition not in ('admit','return','pay_school_fee','validate_courses','graduate','reject_clearance'):
    888892                msg = "no valid transition provided"
Note: See TracChangeset for help on using the changeset viewer.