Changeset 2425 for WAeUP_SRP


Ignore:
Timestamp:
23 Oct 2007, 14:45:09 (17 years ago)
Author:
Henrik Bettermann
Message:

avoid traceback error if hall is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_accommodation/hall_allocation_list.py

    r1273 r2425  
    3838lines.append(','.join(fields))
    3939format = '"%(' + ')s","%('.join(fields) + ')s"'
    40 reserved = pa(hall=context.getId())
    41 for bed in reserved:
     40hall=context.getId()
     41booked = pa(hall=hall)
     42for bed in booked:
    4243    if bed.student == '':
    4344        continue
     
    4647        continue
    4748    d = context.getFormattedStudentEntry(erg[0])
    48     hall,block,room,bed = bed.bed.split('_')
     49    hall_dummy,block,room,bed = bed.bed.split('_')
    4950    d['hall'] = hall
    5051    d['block'] = block
Note: See TracChangeset for help on using the changeset viewer.