- Timestamp:
- 28 Jul 2007, 05:41:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r2038 r2071 1104 1104 students_folder = self.portal_url.getPortalObject().campus.students 1105 1105 tr_count = 1 1106 total = 01106 #total = 0 1107 1107 #name = 'pume_results' 1108 1108 name = 'Results' … … 1116 1116 logger.error('Error reading %s.csv' % name) 1117 1117 return 1118 total = len(results) 1118 1119 1119 l = self.portal_catalog({'meta_type': "Course"}) 1120 1120 courses = [f.getId for f in l] … … 1188 1188 logger.info(em) 1189 1189 regs = [] 1190 total += tr_count1190 #total += tr_count 1191 1191 #tr_count = 0 1192 1192 open("%s/import/%simported%s.csv" % (i_home,name,current),"a").write( … … 1197 1197 open("%s/import/%sno_courses%s.csv" % (i_home,name,current),"a").write( 1198 1198 '\n'.join(no_course_list)) 1199 em = '%d transactions of %s committed, %s courses not found ' % (tr_count,total,course_count)1199 em = '%d transactions committed, %s courses not found ' % (tr_count,course_count) 1200 1200 logger.info(em) 1201 1201 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
Note: See TracChangeset for help on using the changeset viewer.