Changeset 1382 for WAeUP_SRP/trunk
- Timestamp:
- 1 Feb 2007, 08:59:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/deleteStudentByMatricNo.py
r1350 r1382 36 36 res_deleted = [] 37 37 output = [] 38 res i= ret_imp(matric_no=matric_no)39 if len(res ) != 1:40 msg = "Student with matric_no %s not found in students_import" % matric_no38 res_ret = ret_imp(matric_no=matric_no) 39 if len(res_ret) != 1: 40 msg = "Student with matric_no %s not found in returning_import" % matric_no 41 41 logger.info(msg) 42 42 else: 43 msg = "Student with matric_no %s removed from students_import" % matric_no 43 ret_imp.deleteRecord(matric_no) 44 msg = "Student with matric_no %s removed from returning_import" % matric_no 44 45 logger.info(msg) 45 46 output.append(msg) 46 res ults = res_imp(matric_no=matric_no)47 if len(res ults) > 0:48 for r in res ults:47 res_res = res_imp(matric_no=matric_no) 48 if len(res_res) > 0: 49 for r in res_res: 49 50 res_imp.deleteRecord(r.key) 50 51 res_deleted.append(r.key) 51 msg = "%s results deleted " % (',\n'.join(res_deleted))52 msg = "%s results deleted from results_import" % (',\n'.join(res_deleted)) 52 53 else: 53 msg = "No results to delete for %s " % matric_no54 msg = "No results to delete for %s from results_import" % matric_no 54 55 output.append(msg) 55 56 logger.info(msg)
Note: See TracChangeset for help on using the changeset viewer.