Changeset 8298 for WAeUP_SRP/trunk


Ignore:
Timestamp:
27 Apr 2012, 11:24:03 (13 years ago)
Author:
Henrik Bettermann
Message:

Add public getSchoolFess method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r5656 r8298  
    206206        else:
    207207            return None
     208    ###)
     209
     210
     211    security.declarePublic('getSchoolFees') ###(
     212    def getSchoolFees(self):
     213        """open a fees file"""
     214
     215        fees_path = "%s/import/school_fees.csv" % (INSTANCE_HOME)
     216        reader = csv.DictReader(open(fees_path, 'r'))
     217        lst = [i for i in reader]
     218        all_fees = dict([(i['payment_item'],i) for i in lst])
     219        return all_fees
     220
    208221    ###)
    209222   
Note: See TracChangeset for help on using the changeset viewer.