Changeset 2072 for WAeUP_SRP/trunk
- Timestamp:
- 28 Jul 2007, 05:53:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r2071 r2072 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' … … 1184 1184 '\n'.join(no_course_list) + '\n') 1185 1185 no_course_list = [] 1186 em = '%d transactions comitted, %s courses not found ' % (tr_count,course_count)1187 1186 transaction.commit() 1188 logger.info(em)1189 1187 regs = [] 1190 #total += tr_count 1191 #tr_count = 0 1188 total += tr_count 1189 em = '%d transactions totally comitted, %s courses not found ' % (total,course_count) 1190 logger.info(em) 1191 tr_count = 0 1192 1192 open("%s/import/%simported%s.csv" % (i_home,name,current),"a").write( 1193 1193 '\n'.join(imported)) … … 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 committed, %s courses not found ' % (tr_count,course_count)1199 em = '%d transactions totally committed, %s courses not found ' % (total,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.