Changeset 1920 for WAeUP_SRP/trunk/skins/waeup_utilities
- Timestamp:
- 18 Jun 2007, 08:16:33 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/addId2ReturningImport.py
r1919 r1920 38 38 sid = data['id'] = student_brain.id 39 39 matric_no = data['matric_no'] = student_brain.matric_no 40 import_res = self.returning_import(matric_no = matric_no) 41 if not import_res: 42 mcount += 1 43 data['mcount'] = mcount 44 rwrite("%(mcount)d : %(matric_no)s not found in returning_import" % data) 45 continue 46 try: 47 self.returning_import.modifyRecord(**data) 48 except: 49 mcount += 1 50 data['mcount'] = mcount 51 rwrite("%(mcount)d : %(matric_no)s not unique in returning_import" % data) 40 if matric_no: 41 import_res = self.returning_import(matric_no = matric_no) 42 if not import_res: 43 mcount += 1 44 data['mcount'] = mcount 45 rwrite("%(mcount)d : %(matric_no)s not found in returning_import" % data) 46 continue 47 try: 48 self.returning_import.modifyRecord(**data) 49 except: 50 mcount += 1 51 data['mcount'] = mcount 52 rwrite("%(mcount)d : %(matric_no)s not unique in returning_import" % data) 53 continue 54 else: 52 55 continue 53 56 count += 1
Note: See TracChangeset for help on using the changeset viewer.