Changeset 1321 for WAeUP_SRP/trunk


Ignore:
Timestamp:
19 Jan 2007, 11:03:16 (18 years ago)
Author:
Henrik Bettermann
Message:

no import headline fixed

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r1319 r1321  
    400400        name = 'DE_Admitted'
    401401        no_import = []
    402         s = ','.join(['"(%s)"' % fn for fn in csv_fields])
     402        s = ','.join(['"%s"' % fn for fn in csv_fields])
    403403        no_import.append('"Error",%s' % s)
    404404        format = '"%(Error)s",' + ','.join(['"%%(%s)s"' % fn for fn in csv_fields])
     
    939939                start = False
    940940                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()])
    942942                no_import.append('%s,"Error"' % s)
    943943                format = ','.join(['"%%(%s)s"' % fn for fn in student.keys()])
     
    10491049                start = False
    10501050                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()])
    10521052                imported.append(s)
    10531053                no_import.append('%s,"Error"' % s)
     
    11431143                start = False
    11441144                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()])
    11461146                imported.append(s)
    11471147                no_import.append('%s,"Error"' % s)
     
    12371237        name = 'StudyCourseChange'
    12381238        no_import = []
    1239         s = ','.join(['"(%s)"' % fn for fn in csv_fields])
     1239        s = ','.join(['"%s"' % fn for fn in csv_fields])
    12401240        no_import.append('"Error",%s' % s)
    12411241        format = '"%(Error)s",' + ','.join(['"%%(%s)s"' % fn for fn in csv_fields])
     
    13441344        name = 'pume_results'
    13451345        no_import = []
    1346         s = ','.join(['"(%s)"' % fn for fn in csv_fields])
     1346        s = ','.join(['"%s"' % fn for fn in csv_fields])
    13471347        no_import.append('%s\n' % s)
    13481348        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"
    22##bind container=container
    33##bind context=context
     
    7070pin = info['order_id'] = ds.get('pin')
    7171info['type_code'] = "%s" % pin
    72 info['type_description'] = 'School Fee SC %s' % pin
     72info['type_description'] = 'Transfer Form SC %s' % pin
    7373payments.invokeFactory('Payment', p_id)
    7474payment = getattr(payments,p_id)
     
    7777payment.getContent().edit(mapping=info)
    7878wftool.doActionFor(payment,'close')
    79 wftool.doActionFor(student,'pay_school_fee')
    8079url = "%s/payments" % (student.absolute_url())
    8180request.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.