- Timestamp:
- 11 Jan 2007, 18:28:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/hall_allocation_list.py
r1271 r1273 20 20 fields = ("id", 21 21 "name", 22 "hall", 23 "block", 24 "room", 22 25 "bed", 23 26 "matric_no", … … 43 46 continue 44 47 d = context.getFormattedStudentEntry(erg[0]) 45 d['bed'] = bed.bed 48 hall,block,room,bed = bed.bed.split('_') 49 d['hall'] = hall 50 d['block'] = block 51 d['room'] = room 52 d['bed'] = bed 46 53 lines.append(format % d) 47 54 #setheader('Content-type', 'text/x-cvs') 48 55 #setheader('Content-type','application/vnd.ms-excel') 49 56 setheader('Content-type','text/semicolon-seperated-values') 57 setheader('Content-Disposition:', 'attachment; filename="%s.csv"' % hall) 50 58 setheader('Expires', 'Mon, 26 Jul 1997 05:00:00GMT') # Date in the past 51 59 setheader('Cache-Control', 'no-store, no-cache,must-revalidate') # HTTP/1.1
Note: See TracChangeset for help on using the changeset viewer.