- Timestamp:
- 1 Jan 2007, 16:38:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/createReturningStudent.py
r1160 r1169 8 8 ##title= 9 9 ## 10 # $Id: create StudentFT.py 1151 2006-12-29 22:05:53Z joachim $11 ''' create the Studen base folder'''10 # $Id: createReturningStudent.py 1151 2006-12-29 22:05:53Z joachim $ 11 ''' create the Studentbase folder''' 12 12 13 13 … … 30 30 return "MatricNo %s not found in Returning Table" % matric_no 31 31 student_brain = res[0] 32 sid = context.waeup_tool.generateStudentId( student_brain.Firstname[0])32 sid = context.waeup_tool.generateStudentId('?') 33 33 students_folder.invokeFactory('Student', sid) 34 34 logger.info('"%s","Created Student","%s", "%s" ' % (member,sid,matric_no)) 35 35 student = getattr(students_folder,sid) 36 wftool.doActionFor(student,' clear_and_validate')36 wftool.doActionFor(student,'return') 37 37 student.manage_setLocalRoles(sid, ['Owner',]) 38 jamb_reg_no = student_brain.Entryregno, 38 39 context.students_catalog.addRecord(id = sid, 39 40 matric_no = matric_no, 40 jamb_reg_no = student_brain.Entryregno,41 jamb_reg_no = jamb_reg_no, 41 42 sex = student_brain.Sex == "F", 42 43 name = "%s %s %s" % (student_brain.Firstname, … … 44 45 student_brain.Lastname) 45 46 ) 46 return "Student MatricNo %s and %s created" % (matric_no,sid)47 return "Student MatricNo %s, StudentId %s Jamb %s created" % (matric_no,sid,jamb_reg_no) 47 48
Note: See TracChangeset for help on using the changeset viewer.