- Timestamp:
- 16 Aug 2007, 14:43:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2105 r2106 57 57 if slip: 58 58 mode = "view_slip" 59 59 60 res,psm,ds = lt.renderLayout(layout_id= 'application', 60 61 schema_id= 'application', … … 94 95 data[field] = ds.get(field) 95 96 data['reg_no'] = reg_no 96 if apply_pume: 97 data['application_date'] = current 98 data['status'] = "submitted" 99 context.applicants_catalog.modifyRecord(**data) 97 100 98 if apply_pume: 101 99 if not request.has_key('confirm'): … … 105 103 mode = "view" 106 104 psm = "You successfully applied for PUME" 105 data['application_date'] = current 106 data['status'] = "submitted" 107 context.applicants_catalog.modifyRecord(**data) 107 108 elif create: 108 109 if submitted: … … 125 126 psm = "Content changed" 126 127 128 res,psm_dummy,ds = lt.renderLayout(layout_id= 'application', 129 schema_id= 'application', 130 layout_mode = mode, 131 context=context, 132 mapping=validate and REQUEST, 133 ob=object, 134 commit = False, 135 ) 136 127 137 return context.apply_pume_form(rendered = res, 128 138 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.