Changeset 1834
- Timestamp:
- 30 May 2007, 10:07:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1829 r1834 474 474 result['id'] = "None" 475 475 if not res: 476 em = 'Student with Matric_no %s not found' % old_matric_no476 em = 'Student with matric_no %s not found' % old_matric_no 477 477 logger.info(em) 478 result['Error'] = "Student not exists"478 result['Error'] = "Student does not exist" 479 479 not_imported.append(format_error % result) 480 480 total_not_imported += 1 … … 487 487 res = self.portal_catalog(meta_type = "Certificate",id = cert_id) 488 488 if not res: 489 em = 'No Certificate with ID %s \n' % cert_id489 em = 'No certificate with ID %s \n' % cert_id 490 490 logger.info(em) 491 491 result['Error'] = "No Certificate %s" % cert_id … … 512 512 old_current_level = study_course_doc.current_level 513 513 current_level = result.get('current_level',None) 514 new_study_course = result.get('study_course',None) 514 515 try: 515 516 icl = int(current_level) … … 522 523 continue 523 524 if icl <= int(old_current_level) and study_course.objectIds(): 524 em = 'Already registered level %s new %s' % (old_current_level,current_level)525 em = 'Already registered level %s for %s, but is supposed to study %s at level %s' % (old_current_level,old_study_course,new_study_course,current_level) 525 526 logger.info(em) 526 527 result['Error'] = em … … 543 544 study_course_history.append(old_study_course) 544 545 dsc['study_course_history'] = study_course_history 545 dsc['study_course'] = result.get('study_course')546 dsc['study_course'] = new_study_course 546 547 dsc['current_level'] = current_level 547 548 dsc['current_mode'] = result.get('current_mode')
Note: See TracChangeset for help on using the changeset viewer.