Changeset 1442 for WAeUP_SRP


Ignore:
Timestamp:
19 Feb 2007, 15:20:21 (18 years ago)
Author:
joachim
Message:

added error, if student did already has a bed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Accommodation.py

    r1410 r1442  
    146146                continue
    147147            sid = student.id
     148            already = accommodation(student=sid)
     149            if already:
     150                bed['Error'] = "Student already reserved %s" already[0].bed
     151                no_import.append( format_error % bed)
     152                continue
    148153            names = bed.get('name').split()
    149154            n = 0
Note: See TracChangeset for help on using the changeset viewer.