Changeset 1953 for WAeUP_SRP/trunk/Students.py
- Timestamp:
- 24 Jun 2007, 16:38:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1941 r1953 181 181 #from pdb import set_trace;set_trace() 182 182 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 183 186 dict = {} 184 187 for f,fn in csv_d.items(): … … 276 279 total = 0 277 280 #name = 'pume_results' 278 name = 'Admitted '281 name = 'Admitted_update' 279 282 no_import = [] 280 283 s = ','.join(['"%s"' % fn for fn in csv_fields]) … … 902 905 students_folder = self.portal_url.getPortalObject().campus.students 903 906 export_file = "%s/export/students_%s.csv" % (i_home,current) 904 907 905 908 from Products.AdvancedQuery import Eq, Between, Le,In,MatchRegexp 906 909 aq_students = self.students_catalog.evalAdvancedQuery … … 1014 1017 logger.info(msg) 1015 1018 args = {'portal_status_message': msg} 1016 #url = self.REQUEST.get('URL1') + '?' + urlencode(args) 1019 #url = self.REQUEST.get('URL1') + '?' + urlencode(args) 1017 1020 url = self.REQUEST.get('URL2') 1018 1021 return self.REQUEST.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.