Changeset 7058


Ignore:
Timestamp:
9 Nov 2011, 12:37:25 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix event handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/hostel.py

    r7042 r7058  
    208208    of the bed is cleared (set to NOT_OCCUPIED).
    209209    """
    210     if bedticket.bed:
    211         allocated_bed = bedticket.bed
    212         allocated_bed.owner = NOT_OCCUPIED
    213         notify(grok.ObjectModifiedEvent(allocated_bed))
    214     else:
    215         pass
     210    allocated_bed = bedticket.bed
     211    allocated_bed.owner = NOT_OCCUPIED
     212    notify(grok.ObjectModifiedEvent(allocated_bed))
Note: See TracChangeset for help on using the changeset viewer.