Changeset 1117 for WAeUP_SRP/trunk
- Timestamp:
- 21 Dec 2006, 16:19:39 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/change_bed.py
r1104 r1117 38 38 r.bed_type, 39 39 info['student_status'])) 40 to_modify.append((r.bed,r.student,info['student_status'])) 41 42 for former_bed, student, status in to_modify: 40 to_modify.append((r.bed,r.student,info['student_status'],info['acco_doc'])) 41 for former_bed, student, status,acco_doc in to_modify: 43 42 beds.modifyRecord(bed=former_bed,student='') 44 43 code,bed = beds.searchAndReserveBed(student,status) 45 44 if code > 0: 45 #from Products.zdb import set_trace; set_trace() 46 46 d = {} 47 47 d['bed'] = bed … … 50 50 d['acco_maint_code'] = acco_info.get('maintenance_code') 51 51 d['acco_maint_fee'] = acco_info.get('maintenance_fee') 52 info['acco_doc'].edit(mapping=d)53 list.append("Student %s new bed %s assigned code = %s" % ( r.student,52 acco_doc.edit(mapping=d) 53 list.append("Student %s new bed %s assigned code = %s" % (student, 54 54 bed, 55 55 code)) -
WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py
r1100 r1117 50 50 'BARTTHR', 51 51 ) 52 52 pti_certificates = ('BENGIEP', 53 'BENGGCPP', 54 'BENGEEP', 55 'BENGGEP', 56 'BENGPEP', 57 'BENGMEP', 58 ) 53 59 s_brain = res[0] 54 60 students_object = context.portal_url.getPortalObject().campus.students … … 71 77 if s_brain.course in ekehuan_certificates: 72 78 bt += "_ekenhuan" 79 elif s_brain.course in pti_certificates: 80 bt += "_pti" 81 73 82 d['bt'] = bt 74 83 #from Products.zdb import set_trace
Note: See TracChangeset for help on using the changeset viewer.