Changeset 1450 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
20 Feb 2007, 21:00:41 (18 years ago)
Author:
Henrik Bettermann
Message:
 
File:
1 edited

Legend:

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

    r1449 r1450  
    8787        if acco_id in student_obj.objectIds():
    8888            acco_doc = getattr(student_obj, acco_id).getContent()
    89             if acco_doc.bed == bid:
    90                 psm = "Student %s has not reserved bed" % (sid, bid)
     89            if acco_doc.bed != bid:
     90                psm = "Student %s has not reserved bed %s" % (sid, bid)
    9191                break
    9292        if not already:
     
    119119        acco_doc.edit(mapping={'bed': bid})
    120120    logger.info('"%s","booked reserved bed %s for","%s"' % (member,bid,sid))
    121     psm = "Bed reserved for %s %s" % (sid,student.name)
     121    psm = "Bed %s reserved for %s %s" % (bid,sid,student.name)
    122122elif release:
    123123    if acco_id in student_obj.objectIds():
Note: See TracChangeset for help on using the changeset viewer.