Changeset 1794 for WAeUP_SRP


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

ticket #211

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1786 r1794  
    283283        logger = logging.getLogger('WAeUPTool.makeStudentData')
    284284        students_folder = self.portal_url.getPortalObject().campus.students
    285         res = self.students_catalog(id=student_id)
    286         if res:
    287             st = res[0]
    288         res = self.returning_import(matric_no = st.matric_no)
     285        #res = self.students_catalog(id=student_id)
     286        #if res:
     287        #    st = res[0]
     288        #res = self.returning_import(matric_no = st.matric_no)
     289        res = self.returning_import(id = student_id)       
    289290        if res:
    290291            student = res[0]
     292        else:
     293            logger.info('%s Id not found in returning_import' % student_id)
     294            return
    291295        logger.info('%s creates data structure' % student_id)
    292         s_results = self.results_import(matric_no = st.matric_no)
     296        s_results = self.results_import(matric_no = student.matric_no)
    293297        lnr = self.getLevelFromResultsCosCode(s_results)
    294298        level = "%d00" % lnr
  • 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.