Changeset 2038 for WAeUP_SRP


Ignore:
Timestamp:
20 Jul 2007, 04:49:17 (17 years ago)
Author:
Henrik Bettermann
Message:

logging message corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r2016 r2038  
    11161116            logger.error('Error reading %s.csv' % name)
    11171117            return
     1118        total = len(results)
    11181119        l = self.portal_catalog({'meta_type': "Course"})
    11191120        courses = [f.getId for f in l]
     
    11831184                                            '\n'.join(no_course_list) + '\n')
    11841185                    no_course_list = []
    1185                 em = '%d transactions commited total %s\n courses not found %s' % (tr_count,total,course_count)
     1186                em = '%d transactions comitted, %s courses not found ' % (tr_count,course_count)
    11861187                transaction.commit()
    11871188                logger.info(em)
    11881189                regs = []
    11891190                total += tr_count
    1190                 tr_count = 0
     1191                #tr_count = 0
    11911192        open("%s/import/%simported%s.csv" % (i_home,name,current),"a").write(
    11921193                                            '\n'.join(imported))
     
    11961197            open("%s/import/%sno_courses%s.csv" % (i_home,name,current),"a").write(
    11971198                                    '\n'.join(no_course_list))
    1198         em = '%d transactions commited total %s\n courses not found %s' % (tr_count,total,course_count)
     1199        em = '%d transactions of %s committed, %s courses not found ' % (tr_count,total,course_count)
    11991200        logger.info(em)
    12001201        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
Note: See TracChangeset for help on using the changeset viewer.