Changeset 5239 for main/waeup.sirp/branches/ulif-fasttables/src/waeup
- Timestamp:
- 26 Jun 2010, 10:39:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/README.txt
r5235 r5239 2 2 ************************* 3 3 4 : nodoctest:4 :doctest: 5 5 6 6 JAMB data is stored in a JAMBDataTable. … … 29 29 We can get the entries from the table as an iterator: 30 30 31 >>> for x in table: 32 ... print x 31 >>> from pprint import pprint 32 >>> entries = [x for x in table] 33 >>> pprint(entries) 34 [{'course1': u'BSCPOL', 35 'date_of_birth': datetime.date(1982, 5, 25), 36 'entry_session': '9', 37 'firstname': u'MOSES', 38 'fst_sit_fname': u'ISUOSUO MOSES ODOMERO', 39 'jamb_lga': u'ISO-S', 40 'jamb_state': u'DEL', 41 'lastname': u'ISUOSUO', 42 'middlenames': u'ODOMERO', 43 'reg_no': u'91100546DD', 44 'screening_date': u'2009/09/25 09:00:00 GMT+1', 45 'screening_type': u'pde', 46 'screening_venue': u'REPRINT SLIP AS FROM WED 23/09/2009', 47 'sex': u'M'}, 48 {...}, 49 {...}] 33 50 51 We can also get a datetime stamp, that tells, when the table was 52 imported. This could help with maintaining old tables: 53 54 >>> table.import_datetime 55 datetime.datetime(..., ..., ..., ..., ..., ..., ...) 56 34 57 35 58 We can delete the table:
Note: See TracChangeset for help on using the changeset viewer.