- Timestamp:
- 11 Oct 2006, 23:22:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r652 r659 8 8 current = DateTime.DateTime() 9 9 pr = context.portal_registration 10 wftool = context.portal_workflow 10 11 11 12 info = context.getStudentInfo() … … 15 16 pr = context.portal_registration 16 17 session = current.year() 17 acco_id = ' Acco_%s' % session18 acco_id = 'accommodation_%s' % session 18 19 info = context.getStudentInfo() 19 20 student = info['student'] … … 27 28 layout_mode='create', 28 29 formaction = "reserve_accommodation", 29 button = " book Bed",30 button = "Book", 30 31 ) 31 32 if psm == 'invalid': … … 47 48 s_id = ds.get('s_id') 48 49 pin = str(ds.get('acco_res_ac_pin')) 49 50 50 51 pa = context.portal_accommodation 51 52 code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status'))) … … 59 60 student.invokeFactory('StudentAccommodation',acco_id) 60 61 acco = getattr(student,acco_id) 62 wftool.doActionFor(acco,'open',dest_container=acco) 61 63 ds.set('acco_res_date', current) 62 64 ds.set('bed', bed)
Note: See TracChangeset for help on using the changeset viewer.