Changeset 1726 for WAeUP_SRP


Ignore:
Timestamp:
2 May 2007, 06:21:50 (18 years ago)
Author:
Henrik Bettermann
Message:

New students could not access their accommodation slip. Joachim, please check my fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py

    r1571 r1726  
    7575if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',):
    7676    booking_allowed = True
    77     res = context.results_import(matric_no = s_brain.matric_no)
    78     if res:
    79         booking_allowed = info['verdict'] in ("A",
    80                                              "B",)
     77    if s_brain.matric_no:
     78        res = context.results_import(matric_no = s_brain.matric_no)
     79        if res:
     80            booking_allowed = info['verdict'] in ("A",
     81                                                 "B",)
    8182info['booking_allowed'] = booking_allowed
    8283if not booking_allowed:
Note: See TracChangeset for help on using the changeset viewer.