- Timestamp:
- 27 Mar 2008, 07:53:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3380 r3381 949 949 required_modes = ('create',) 950 950 951 def create(self,mapping): 951 def create(self,mapping): ###( 952 952 "edit student levels and create StudentStudyLevel object if not existent" 953 953 wftool = self.portal_workflow … … 972 972 msg = 'student %s: imported level is empty' % (student_id,) 973 973 break 974 stud ent_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) 975 975 if study_course_obj is None: 976 976 msg = 'student %s: no study_course object' % student_id … … 1009 1009 student_id = student_record.id 1010 1010 mapping['id'] = student_id 1011 session = mapping.get('session','') 1012 level = key = mapping.get('code','') 1011 1013 #import pdb;pdb.set_trace() 1012 session = mapping.get('session','')1013 level = key = mapping.get('level','')1014 1014 if not level.isdigit(): 1015 1015 msg = 'student %s: imported level is empty' % (student_id,) 1016 1016 break 1017 stud ent_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) 1018 1018 if study_course_obj is None: 1019 1019 msg = 'student %s: no study_course object' % student_id … … 1027 1027 return key,msg,mapping 1028 1028 ###) 1029 ###) 1029 1030 1030 1031 class VerdictImport(WAeUPImport):###(
Note: See TracChangeset for help on using the changeset viewer.