Changeset 182 for waeup_product/trunk/skins/waeup_student/eligibility.py
- Timestamp:
- 16 Nov 2005, 23:30:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/eligibility.py
r179 r182 9 9 rset = request.set 10 10 fget = request.form.get 11 form = request.form 11 12 fhas = request.form.has_key 12 13 … … 18 19 sr = eli.schoolresults 19 20 20 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolresults', 21 validate = fhas('add') or fhas('change') or fhas('delete') 22 23 form['widget__jamb_results'] = eli.jamb_results 24 form['widget__jamb_aggregate'] =eli.jamb_aggregate 25 form['widget__faculty'] =eli.faculty 26 form['widget__course'] =eli.course 27 res,psm,ds = lt.renderLayout(layout_id= 'student_eligibility_edit', 21 28 schema_id= 'student_eligibility', 22 29 context=context, … … 29 36 30 37 inr = 0 38 rset('ds',ds) 31 39 if fhas('add') and (fget('type') or fget('subject') or fget('result')): 32 40 sr.append((fget('type'),fget('subject'),fget('result'))) … … 48 56 else: 49 57 psm = '' 50 eli.edit(mapping={'schoolresults': sr}) 51 res,dummy,ds = lt.renderLayout(layout_id= 'student_schoolresults', 58 ds.set('schoolresults',sr) 59 eli.edit(mapping={'schoolresults':sr, 60 'jamb_aggregate': fget('widget__aggregate'), 61 }) 62 #eli.edit(mapping=ds) 63 res,dummy,ds = lt.renderLayout(layout_id= 'student_eligibility_edit', 52 64 schema_id= 'student_eligibility', 53 65 context=context,
Note: See TracChangeset for help on using the changeset viewer.