Ignore:
Timestamp:
1 Apr 2008, 15:53:50 (16 years ago)
Author:
joachim
Message:

fix for #523 tested with Matnos06ptforupdate.csv on lokal data.fs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3383 r3402  
    772772                res = self.students_catalog(jamb_reg_no = jamb_reg_no)
    773773                if res:
    774                     msg = "jamb_reg_no exists"
     774                    msg = "jamb_reg_no exists for student %s" % res[0].id
    775775                    break
    776776            if matric_no:
    777777                res = self.students_catalog(matric_no = matric_no)
    778778                if res:
    779                     msg = "matric_no exists"
     779                    msg = "matric_no exists for student %s" % res[0].id
    780780                    break
    781781            if not matric_no and not jamb_reg_no:
     
    826826
    827827    def edit(self,mapping): ###(
     828        "edit student records due import"
    828829        wftool = self.portal_workflow
    829         "edit student records due import"
    830830        logger = logging.getLogger('WAeUPTool.mass_edit_student')
    831831        students_folder = self.portal_url.getPortalObject().campus.students
     
    844844                if matric_no and student_record.matric_no:
    845845                    if  matric_no != student_record.matric_no:
     846                        res = self.students_catalog(matric_no = matric_no)
     847                        if res:
     848                            msg = "matric_no exists for student %s" % res[0].id
     849                            break
    846850                        msg = "old matric_no %s overwritten with %s" % (student_record.matric_no,matric_no)
    847851                        #logger.info("%s, old matric_no %s overwritten with %s" % (student_record.id,student_record.matric_no,matric_no))
Note: See TracChangeset for help on using the changeset viewer.