Ignore:
Timestamp:
22 Feb 2007, 16:01:32 (18 years ago)
Author:
Henrik Bettermann
Message:

fix booking_allowed

File:
1 edited

Legend:

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

    r1359 r1470  
    6464info['email']=s_brain.email
    6565info['level']=s_brain.level
     66info['verdict']=s_brain.verdict
    6667
    6768students_object = context.portal_url.getPortalObject().campus.students
     
    7576    res = context.results_import(matric_no = s_brain.matric_no)
    7677    if res:
    77         booking_allowed = res[0].Verdict in ("SUCCESSFUL STUDENT",
    78                                              "STUDENT WITH CARRYOVER COURSES",)
     78        booking_allowed = info['verdict'] in ("A",
     79                                             "B",)
    7980info['booking_allowed'] = booking_allowed
    8081if not booking_allowed:
Note: See TracChangeset for help on using the changeset viewer.