Changeset 2072 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 Jul 2007, 05:53:55 (17 years ago)
Author:
Henrik Bettermann
Message:

logging message fixed again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r2071 r2072  
    11041104        students_folder = self.portal_url.getPortalObject().campus.students
    11051105        tr_count = 1
    1106         #total = 0
     1106        total = 0
    11071107        #name = 'pume_results'
    11081108        name = 'Results'
     
    11841184                                            '\n'.join(no_course_list) + '\n')
    11851185                    no_course_list = []
    1186                 em = '%d transactions comitted, %s courses not found ' % (tr_count,course_count)
    11871186                transaction.commit()
    1188                 logger.info(em)
    11891187                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
    11921192        open("%s/import/%simported%s.csv" % (i_home,name,current),"a").write(
    11931193                                            '\n'.join(imported))
     
    11971197            open("%s/import/%sno_courses%s.csv" % (i_home,name,current),"a").write(
    11981198                                    '\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)
    12001200        logger.info(em)
    12011201        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
Note: See TracChangeset for help on using the changeset viewer.