Ignore:
Timestamp:
1 Jan 2007, 16:38:46 (18 years ago)
Author:
joachim
Message:

display_session_results now asks for jamb_reg_no
set_access_data uses this information
permission mappings for new states in waeup_student_wf added
set_access_data is now called from a form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/createReturningStudent.py

    r1160 r1169  
    88##title=
    99##
    10 # $Id: createStudentFT.py 1151 2006-12-29 22:05:53Z joachim $
    11 ''' create the Studenbase folder'''
     10# $Id: createReturningStudent.py 1151 2006-12-29 22:05:53Z joachim $
     11''' create the Studentbase folder'''
    1212
    1313
     
    3030    return "MatricNo %s not found in Returning Table" % matric_no
    3131student_brain = res[0]
    32 sid = context.waeup_tool.generateStudentId(student_brain.Firstname[0])
     32sid = context.waeup_tool.generateStudentId('?')
    3333students_folder.invokeFactory('Student', sid)
    3434logger.info('"%s","Created Student","%s", "%s" ' % (member,sid,matric_no))
    3535student = getattr(students_folder,sid)
    36 wftool.doActionFor(student,'clear_and_validate')
     36wftool.doActionFor(student,'return')
    3737student.manage_setLocalRoles(sid, ['Owner',])
     38jamb_reg_no = student_brain.Entryregno,
    3839context.students_catalog.addRecord(id = sid,
    3940                                   matric_no = matric_no,
    40                                    jamb_reg_no = student_brain.Entryregno,
     41                                   jamb_reg_no = jamb_reg_no,
    4142                                   sex = student_brain.Sex == "F",
    4243                                   name = "%s %s %s" % (student_brain.Firstname,
     
    4445                                                        student_brain.Lastname)
    4546                                )
    46 return "Student MatricNo %s and %s created" % (matric_no,sid)
     47return "Student MatricNo %s, StudentId %s Jamb %s created" % (matric_no,sid,jamb_reg_no)
    4748
Note: See TracChangeset for help on using the changeset viewer.