Changeset 3165
- Timestamp:
- 14 Feb 2008, 20:17:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py
r3156 r3165 14 14 import logging 15 15 from Products.AdvancedQuery import Eq, Between, Le,In 16 16 17 17 logger = logging.getLogger('Skins.change_bed') 18 18 request = context.REQUEST … … 54 54 records = context.portal_accommodation.evalAdvancedQuery(query) 55 55 if len(records) < 1: 56 psm=' 'New bed allocation for %s failed, No bed free in category %s' % (student_id,status)56 psm='New bed allocation for %s failed, No bed free in category %s' % (student_id,status) 57 57 logger.info(psm) 58 58 psm='Bed change failed!' 59 59 break 60 60 beds.modifyRecord(bed=allocated_bed.bed,student=beds.not_occupied) 61 logger.info('Bed %s released' % (allocated_bed.bed)) 61 logger.info('Bed %s released' % (allocated_bed.bed)) 62 62 code,bed = beds.searchAndReserveBed(student_id,status) 63 63 if code > 0:
Note: See TracChangeset for help on using the changeset viewer.