Ignore:
Timestamp:
19 Feb 2007, 22:14:47 (18 years ago)
Author:
Henrik Bettermann
Message:

make book_reserved_bed work

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

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

    r1401 r1446  
    1010# $Id$
    1111
    12 verdicts = {'SUCCESSFUL STUDENT': ('successful',True),
    13             'STUDENT WITH CARRYOVER COURSES': ('carryover',True),
    14             'STUDENT ON PROBATION': ('probation',False),
    15             'WITHDRAWAL STUDENT': ('withdrawal',False),
     12verdicts = {'SUCCESSFUL STUDENT': ('A',True),
     13            'STUDENT WITH CARRYOVER COURSES': ('B',True),
     14            'STUDENT ON PROBATION': ('C',False),
     15            'WITHDRAWAL STUDENT': ('D',False),
    1616            'FIRST CLASS HONOURS': ('first_class',False),
    1717            'SECOND CLASS HONOURS (UPPER DIVISION)': ('second_class_upper',False),
  • WAeUP_SRP/trunk/skins/waeup_student/search_students.py

    r1278 r1446  
    228228    for item in items:
    229229        stcat = context.students_catalog
    230         record = stcat(id = item)[0]
     230        record = stcat(id = item)
     231        if record:
     232            record = record[0]
     233        else:
     234            return item+' not found in students_catalog'
    231235        info = {}
    232236        for field in stcat.schema() + stcat.indexes():
Note: See TracChangeset for help on using the changeset viewer.