- Timestamp:
- 19 Jan 2007, 11:03:16 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1319 r1321 400 400 name = 'DE_Admitted' 401 401 no_import = [] 402 s = ','.join(['" (%s)"' % fn for fn in csv_fields])402 s = ','.join(['"%s"' % fn for fn in csv_fields]) 403 403 no_import.append('"Error",%s' % s) 404 404 format = '"%(Error)s",' + ','.join(['"%%(%s)s"' % fn for fn in csv_fields]) … … 939 939 start = False 940 940 logger.info('start loading from %s.csv' % name) 941 s = ','.join(['" (%s)"' % fn for fn in student.keys()])941 s = ','.join(['"%s"' % fn for fn in student.keys()]) 942 942 no_import.append('%s,"Error"' % s) 943 943 format = ','.join(['"%%(%s)s"' % fn for fn in student.keys()]) … … 1049 1049 start = False 1050 1050 logger.info('start loading from %s.csv' % name) 1051 s = ','.join(['" (%s)"' % fn for fn in student.keys()])1051 s = ','.join(['"%s"' % fn for fn in student.keys()]) 1052 1052 imported.append(s) 1053 1053 no_import.append('%s,"Error"' % s) … … 1143 1143 start = False 1144 1144 logger.info('start loading from %s.csv' % name) 1145 s = ','.join(['" (%s)"' % fn for fn in result.keys()])1145 s = ','.join(['"%s"' % fn for fn in result.keys()]) 1146 1146 imported.append(s) 1147 1147 no_import.append('%s,"Error"' % s) … … 1237 1237 name = 'StudyCourseChange' 1238 1238 no_import = [] 1239 s = ','.join(['" (%s)"' % fn for fn in csv_fields])1239 s = ','.join(['"%s"' % fn for fn in csv_fields]) 1240 1240 no_import.append('"Error",%s' % s) 1241 1241 format = '"%(Error)s",' + ','.join(['"%%(%s)s"' % fn for fn in csv_fields]) … … 1344 1344 name = 'pume_results' 1345 1345 no_import = [] 1346 s = ','.join(['" (%s)"' % fn for fn in csv_fields])1346 s = ','.join(['"%s"' % fn for fn in csv_fields]) 1347 1347 no_import.append('%s\n' % s) 1348 1348 logger = logging.getLogger('Import.%s' % name) -
WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py
r1319 r1321 1 ## Script (Python) " pay_by_sc"1 ## Script (Python) "request_transfer" 2 2 ##bind container=container 3 3 ##bind context=context … … 70 70 pin = info['order_id'] = ds.get('pin') 71 71 info['type_code'] = "%s" % pin 72 info['type_description'] = ' School FeeSC %s' % pin72 info['type_description'] = 'Transfer Form SC %s' % pin 73 73 payments.invokeFactory('Payment', p_id) 74 74 payment = getattr(payments,p_id) … … 77 77 payment.getContent().edit(mapping=info) 78 78 wftool.doActionFor(payment,'close') 79 wftool.doActionFor(student,'pay_school_fee')80 79 url = "%s/payments" % (student.absolute_url()) 81 80 request.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.