Changeset 2071 for WAeUP_SRP


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

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r2038 r2071  
    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'
     
    11161116            logger.error('Error reading %s.csv' % name)
    11171117            return
    1118         total = len(results)
     1118
    11191119        l = self.portal_catalog({'meta_type': "Course"})
    11201120        courses = [f.getId for f in l]
     
    11881188                logger.info(em)
    11891189                regs = []
    1190                 total += tr_count
     1190                #total += tr_count
    11911191                #tr_count = 0
    11921192        open("%s/import/%simported%s.csv" % (i_home,name,current),"a").write(
     
    11971197            open("%s/import/%sno_courses%s.csv" % (i_home,name,current),"a").write(
    11981198                                    '\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)
    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.