Changeset 1953


Ignore:
Timestamp:
24 Jun 2007, 16:38:01 (17 years ago)
Author:
Henrik Bettermann
Message:

modifications to import Admitted06_Latest7.csv
(records without pume_score should not be updated)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r1941 r1953  
    181181        #from pdb import set_trace;set_trace()
    182182        for jamb in result:
     183            if not jamb.get(csv_d['pume_score']):
     184                logger.info('Student %s has no pume_score' % jamb.get(csv_d['jamb_reg_no']))
     185                continue
    183186            dict = {}
    184187            for f,fn in csv_d.items():
     
    276279        total = 0
    277280        #name = 'pume_results'
    278         name = 'Admitted'
     281        name = 'Admitted_update'
    279282        no_import = []
    280283        s = ','.join(['"%s"' % fn for fn in csv_fields])
     
    902905        students_folder = self.portal_url.getPortalObject().campus.students
    903906        export_file = "%s/export/students_%s.csv" % (i_home,current)
    904        
     907
    905908        from Products.AdvancedQuery import Eq, Between, Le,In,MatchRegexp
    906909        aq_students = self.students_catalog.evalAdvancedQuery
     
    10141017        logger.info(msg)
    10151018        args = {'portal_status_message': msg}
    1016         #url = self.REQUEST.get('URL1') + '?' + urlencode(args) 
     1019        #url = self.REQUEST.get('URL1') + '?' + urlencode(args)
    10171020        url = self.REQUEST.get('URL2')
    10181021        return self.REQUEST.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.