Changeset 3381 for WAeUP_SRP


Ignore:
Timestamp:
27 Mar 2008, 07:53:15 (17 years ago)
Author:
joachim
Message:

make study_level_import work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3380 r3381  
    949949    required_modes = ('create',)
    950950
    951     def create(self,mapping):
     951    def create(self,mapping): ###(
    952952        "edit student levels and create StudentStudyLevel object if not existent"
    953953        wftool = self.portal_workflow
     
    972972                msg = 'student %s: imported level is empty' % (student_id,)
    973973                break
    974             student_course_obj = getattr(getattr(students_folder,student_id),student_obj,'study_course',None)
     974            study_course_obj = getattr(getattr(students_folder,student_id),'study_course',None)
    975975            if study_course_obj is None:
    976976                msg = 'student %s: no study_course object' % student_id
     
    10091009            student_id = student_record.id
    10101010            mapping['id'] = student_id
     1011            session = mapping.get('session','')
     1012            level = key = mapping.get('code','')
    10111013            #import pdb;pdb.set_trace()
    1012             session = mapping.get('session','')
    1013             level = key = mapping.get('level','')
    10141014            if not level.isdigit():
    10151015                msg = 'student %s: imported level is empty' % (student_id,)
    10161016                break
    1017             student_course_obj = getattr(getattr(students_folder,student_id),student_obj,'study_course',None)
     1017            study_course_obj = getattr(getattr(students_folder,student_id),'study_course',None)
    10181018            if study_course_obj is None:
    10191019                msg = 'student %s: no study_course object' % student_id
     
    10271027        return key,msg,mapping
    10281028    ###)
     1029###)
    10291030
    10301031class VerdictImport(WAeUPImport):###(
Note: See TracChangeset for help on using the changeset viewer.