Changeset 5653
- Timestamp:
- 21 Jan 2011, 12:16:53 (14 years ago)
- 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 70 70 psm = "Student %s has already booked bed %s. This booking must be cancelled first." % (sid, already[0].bed) 71 71 break 72 if not bed_brain.bed_type.endswith("reserved"):72 if not "reserved" in bed_brain.bed_type: 73 73 psm = "%s is not a reserved bed" % bid 74 74 break … … 94 94 psm = "Student %s has already paid for bed %s" % (sid, bid) 95 95 break 96 if not bed_brain.bed_type.endswith("reserved"):96 if not "reserved" in bed_brain.bed_type: 97 97 psm = "%s is not a reserved bed" % bid 98 98 break -
WAeUP_SRP/trunk/skins/waeup_accommodation/allocate_reserved_bed.py_old_version
r5624 r5653 75 75 psm = "Student %s has already reserved bed %s" % (sid, already[0].bed) 76 76 break 77 if not bed_brain.bed_type.endswith("reserved"):77 if not "reserved" in bed_brain.bed_type: 78 78 psm = "%s is not a reserved bed" % bid 79 79 break … … 93 93 psm = "Student %s has no reserved bed" % (sid) 94 94 break 95 if not bed_brain.bed_type.endswith("reserved"):95 if not "reserved" in bed_brain.bed_type: 96 96 psm = "%s is not a reserved bed" % bid 97 97 break
Note: See TracChangeset for help on using the changeset viewer.