Changeset 717 for WAeUP_SRP/trunk


Ignore:
Timestamp:
17 Oct 2006, 17:47:17 (18 years ago)
Author:
joachim
Message:

fix csv-format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r715 r717  
    107107                  "bank_code",
    108108                  )
    109         format = ' '.join(['%%(%s)s ' % fn for fn in fields])
     109        format = ','.join(['"%%(%s)s"' % fn for fn in fields])
    110110        for faculty in faculties:
    111111            processing = "processing %s" % format
     
    141141                  "faculty_code",
    142142                  )
    143         format = ' '.join(['%%(%s)s ' % fn for fn in fields])
     143        format = ','.join(['"%%(%s)s"' % fn for fn in fields])
    144144        try:
    145145            deps = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb"))
     
    202202                  "session",
    203203                  )
    204         format = ' '.join(['%%(%s)s ' % fn for fn in fields])
     204        format = ','.join(['"%%(%s)s"' % fn for fn in fields])
    205205        try:
    206206            courses = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb"))
     
    274274                  "admin_status",
    275275                  )
    276         format = ' '.join(['%%(%s)s ' % fn for fn in fields])
     276        format = ','.join(['"%%(%s)s"' % fn for fn in fields])
    277277        try:
    278278            courses = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb"))
     
    347347                  "core_or_elective",
    348348                  )
    349         format = ', '.join(['"%%(%s)s"' % fn for fn in fields])
     349        format = ','.join(['"%%(%s)s"' % fn for fn in fields])
    350350        try:
    351351            cert_courses = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb"))
Note: See TracChangeset for help on using the changeset viewer.