Changeset 5653


Ignore:
Timestamp:
21 Jan 2011, 12:16:53 (14 years ago)
Author:
Henrik Bettermann
Message:

Enable allocation of reserved bed spaces in SSE hostels (with special handling).

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/allocate_reserved_bed.py

    r5619 r5653  
    7070            psm = "Student %s has already booked bed %s. This booking must be cancelled first." % (sid, already[0].bed)
    7171            break
    72         if not bed_brain.bed_type.endswith("reserved"):
     72        if not "reserved" in bed_brain.bed_type:
    7373            psm = "%s is not a reserved bed" % bid
    7474            break
     
    9494            psm = "Student %s has already paid for bed %s" % (sid, bid)
    9595            break
    96         if not bed_brain.bed_type.endswith("reserved"):
     96        if not "reserved" in bed_brain.bed_type:
    9797            psm = "%s is not a reserved bed" % bid
    9898            break
  • WAeUP_SRP/trunk/skins/waeup_accommodation/allocate_reserved_bed.py_old_version

    r5624 r5653  
    7575            psm = "Student %s has already reserved bed %s" % (sid, already[0].bed)
    7676            break
    77         if not bed_brain.bed_type.endswith("reserved"):
     77        if not "reserved" in bed_brain.bed_type:
    7878            psm = "%s is not a reserved bed" % bid
    7979            break
     
    9393            psm = "Student %s has no reserved bed" % (sid)
    9494            break
    95         if not bed_brain.bed_type.endswith("reserved"):
     95        if not "reserved" in bed_brain.bed_type:
    9696            psm = "%s is not a reserved bed" % bid
    9797            break
Note: See TracChangeset for help on using the changeset viewer.