Changeset 1887
- Timestamp:
- 13 Jun 2007, 03:46:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1880 r1887 149 149 no_import_name = "%s/import/%s_not_imported_%s.csv" % (i_home,name,current) 150 150 #open(no_import_name,"w").write('\n'.join(no_import)) 151 logger = logging.getLogger(' Import.%s' % name)151 logger = logging.getLogger('Students.loadPumeResultsFromCSV' % name) 152 152 starttime = DateTime.now() 153 153 logger.info('Start loading from %s.csv' % name) … … 161 161 import_format = ','.join(['"%%(%s)s"' % fn for fn in csv_d.keys()]) 162 162 eduplicate = '%s,"duplicate"' % format 163 eoriginal = '%s,"original"' % format 163 164 einvalidjamb = '%s,"invalid JambRegNo"' % format 164 165 added = 'added ,%s' % format … … 200 201 for f,fn in csv_d.items(): 201 202 dd[fn] = getattr(data,f) 202 no_import.append(e duplicate% dd)203 no_import.append(eoriginal % dd) 203 204 no_import.append(eduplicate % jamb) 204 205 continue … … 528 529 not_imported.append( format_error % result) 529 530 total_not_imported += 1 530 continue 531 continue 531 532 if study_course.objectIds(): 532 533 em = 'Already registered level %s for %s, but is supposed to study %s at level %s' % (old_current_level,old_study_course,new_study_course,current_level)
Note: See TracChangeset for help on using the changeset viewer.