Changeset 2083 for WAeUP_SRP/trunk


Ignore:
Timestamp:
30 Jul 2007, 21:34:36 (17 years ago)
Author:
Henrik Bettermann
Message:

split lga perfectly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r2080 r2083  
    101101        lgadic = lga.split('_')
    102102        return lgadic[0].upper(),lgadic[1].upper()
     103    if lga.find('/') > -1:
     104        lgadic = lga.split('/')
     105        return lgadic[0].upper(),lgadic[1].upper()   
    103106    return "",lga
    104107
     
    10441047        for f in self.students_catalog.schema():
    10451048            fields.append(f)
     1049        fields.append('state')
    10461050        headline = ','.join(fields)
    10471051        open(export_file,"a").write(headline +'\n')
Note: See TracChangeset for help on using the changeset viewer.