Changeset 2426 for WAeUP_SRP/base
- Timestamp:
- 23 Oct 2007, 20:00:45 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/hall_allocation_list.py
r2425 r2426 38 38 lines.append(','.join(fields)) 39 39 format = '"%(' + ')s","%('.join(fields) + ')s"' 40 hall=context.getId() 41 booked = pa(hall=hall) 40 hallid=context.getId() 41 booked = pa(hall=hallid) 42 if not booked: 43 hallid = 'all_halls' 44 booked = pa() 42 45 for bed in booked: 43 46 if bed.student == '': … … 47 50 continue 48 51 d = context.getFormattedStudentEntry(erg[0]) 49 hall _dummy,block,room,bed = bed.bed.split('_')52 hall,block,room,bed = bed.bed.split('_') 50 53 d['hall'] = hall 51 54 d['block'] = block … … 56 59 #setheader('Content-type','application/vnd.ms-excel') 57 60 setheader('Content-type','text/semicolon-seperated-values') 58 setheader('Content-Disposition:', 'attachment; filename="%s.csv"' % hall )61 setheader('Content-Disposition:', 'attachment; filename="%s.csv"' % hallid) 59 62 setheader('Expires', 'Mon, 26 Jul 1997 05:00:00GMT') # Date in the past 60 63 setheader('Cache-Control', 'no-store, no-cache,must-revalidate') # HTTP/1.1
Note: See TracChangeset for help on using the changeset viewer.