Changeset 2454 for WAeUP_SRP/base/skins/waeup_accommodation
- Timestamp:
- 27 Oct 2007, 21:53:04 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_accommodation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/allocate_reserved_bed.py
r1566 r2454 64 64 students = context.portal_url.getPortalObject().campus.students 65 65 student_obj = getattr(students,sid) 66 acco_id = "accommodation_%s" % context.getSessionId() 66 acco_id = "accommodation_%s" % context.getSessionId()[0] 67 67 while True: 68 68 if not res: -
WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py
r2000 r2454 60 60 return redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id'])) 61 61 student_obj = getattr(students,student_id) 62 acco_id = "accommodation_%s" % context.getSessionId() 62 acco_id = "accommodation_%s" % context.getSessionId()[0] 63 63 if acco_id in student_obj.objectIds(): 64 64 acco_doc = getattr(student_obj, acco_id).getContent() -
WAeUP_SRP/base/skins/waeup_accommodation/getAccommodationInfo.py
r2427 r2454 80 80 booking_allowed = info['verdict'] in ("A", 81 81 "B",) 82 82 83 83 booking_allowed = False # booking temporarily disabled 84 84 # the algorithm must be adapted to new course_results catalog 85 85 # and/or FCEOkene modalities 86 87 88 89 90 91 92 93 94 86 87 95 88 info['booking_allowed'] = booking_allowed 96 89 if not booking_allowed: 97 90 info['acco'] = None 98 91 return info 99 acco_id = 'accommodation_2006' 92 info['session'] = session = context.getSessionId() 93 acco_id = 'accommodation_' + session[0] 100 94 acco = getattr(student,acco_id,None) 101 95 info['acco'] = acco -
WAeUP_SRP/base/skins/waeup_accommodation/reserve_accommodation.py
r2000 r2454 27 27 student = info['student'] 28 28 acco_id = info['acco_id'] 29 session = acco_id[-4:] 29 session = info['session'][1] 30 #session = acco_id[-4:] 30 31 validate = REQUEST.has_key("cpsdocument_create_button") 31 32 if info.has_key('acco') and info['acco']:
Note: See TracChangeset for help on using the changeset viewer.