Ignore:
Timestamp:
16 Nov 2005, 23:30:12 (19 years ago)
Author:
joachim
Message:

=eligibility edit geht fast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_student/eligibility.py

    r179 r182  
    99rset = request.set
    1010fget = request.form.get
     11form = request.form
    1112fhas = request.form.has_key
    1213
     
    1819sr = eli.schoolresults
    1920
    20 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolresults',
     21validate = fhas('add') or fhas('change') or fhas('delete')
     22
     23form['widget__jamb_results'] = eli.jamb_results                     
     24form['widget__jamb_aggregate'] =eli.jamb_aggregate
     25form['widget__faculty'] =eli.faculty                     
     26form['widget__course'] =eli.course       
     27res,psm,ds = lt.renderLayout(layout_id= 'student_eligibility_edit',
    2128                      schema_id= 'student_eligibility',
    2229                      context=context,
     
    2936
    3037inr = 0
     38rset('ds',ds)
    3139if fhas('add') and (fget('type') or fget('subject') or fget('result')):
    3240    sr.append((fget('type'),fget('subject'),fget('result')))
     
    4856else:
    4957    psm = ''
    50 eli.edit(mapping={'schoolresults': sr})
    51 res,dummy,ds = lt.renderLayout(layout_id= 'student_schoolresults',
     58ds.set('schoolresults',sr)
     59eli.edit(mapping={'schoolresults':sr,
     60                  'jamb_aggregate': fget('widget__aggregate'),
     61                  })
     62#eli.edit(mapping=ds)
     63res,dummy,ds = lt.renderLayout(layout_id= 'student_eligibility_edit',
    5264                      schema_id= 'student_eligibility',
    5365                      context=context,
Note: See TracChangeset for help on using the changeset viewer.