Changeset 1794 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
17 May 2007, 16:40:34 (18 years ago)
Author:
Henrik Bettermann
Message:

ticket #211

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/display_session_results.py

    r1448 r1794  
    7878student['session'] = session
    7979registered = None
    80 res = context.students_catalog(matric_no = student_rec.matric_no)
     80res = context.returning_import(matric_no = student_rec.matric_no)
    8181if res:
    8282    student_id = res[0].id
  • WAeUP_SRP/trunk/skins/waeup_student/set_access_data.py

    r1582 r1794  
    2121    sid = st_res[0].id
    2222else:
    23     logger.info('Student object with matric_no does not exist' % matric_no)
     23    st_res = context.returning_import(matric_no = matric_no)
     24    if st_res:
     25        sid = st_res[0].id
     26        logger.info('Student object with matric_no %s does not exist in students_catalog. Id taken from returning_import.' % matric_no)
     27    else:
     28        logger.info('Student object with matric_no %s neither exists in students_catalog nor in returning_import.' % matric_no)
     29        return
    2430res,psm,ds = lt.renderLayout(layout_id= 'student_session_results_search',
    2531                      schema_id= 'student_returning',
Note: See TracChangeset for help on using the changeset viewer.