- Timestamp:
- 27 Jun 2010, 08:59:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/jambtables.py
r5242 r5245 30 30 from BTrees.Length import Length 31 31 32 #: The header fields required for a valid JAMB table CSV file. 33 JAMB_DATA_HEADERS = [ 34 'firstname', 'lastname', 'middlenames', 'screening_type', 35 'screening_venue', 'reg_no', 'sex', 'course1', 'jamb_state', 36 'screening_date', 'jamb_lga', 'fst_sit_fname', 'date_of_birth'] 37 32 38 def filter_data(datadict): 33 39 """Filter items whose key contains 'ignore' … … 38 44 continue 39 45 del datadict[key] 40 for name in ['firstname', 'lastname', 'middlenames', 'screening_type', 41 'screening_venue', 'reg_no', 'sex', 'course1', 'jamb_state', 42 'screening_date', 'jamb_lga', 'fst_sit_fname',]: 46 for name in JAMB_DATA_HEADERS: 43 47 datadict[name] = unicode(datadict[name]) 44 48 datadict['date_of_birth'] = datetime.strptime(
Note: See TracChangeset for help on using the changeset viewer.