- Timestamp:
- 17 Jan 2007, 18:05:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/deleteStudentByMatricNo.py
r1310 r1316 25 25 students = context.portal_url.getPortalObject().campus.students 26 26 if str(member) not in ('admin','joachim') or matric_no is None: 27 return 27 return 28 28 res = st_cat(matric_no=matric_no) 29 29 if len(res) != 1: … … 51 51 msg = "%s deleted" % (','.join(res_deleted)) 52 52 else: 53 msg = " no results to delete for %s" % matric_no53 msg = "No results to delete for %s" % matric_no 54 54 output.append(msg) 55 55 logger.info(msg) 56 56 if hasattr(stdir, student_id): 57 57 stdir.deleteEntry(student_id) 58 msg = "Student Directoryentry for %s deleted" % student_id58 msg = "Student directory entry for %s deleted" % student_id 59 59 else: 60 msg = "No Student Directoryentry for %s" % student_id60 msg = "No Student directory entry for %s" % student_id 61 61 output.append(msg) 62 62 logger.info(msg) 63 63 if hasattr(students,student_id): 64 64 students.manage_delObjects((student_id),) 65 msg = " students entryfor %s deleted" % student_id65 msg = "Student object for %s deleted" % student_id 66 66 else: 67 msg = "No students entryfor %s" % student_id67 msg = "No students object for %s" % student_id 68 68 output.append(msg) 69 69 logger.info(msg)
Note: See TracChangeset for help on using the changeset viewer.