Changeset 5239 for main


Ignore:
Timestamp:
26 Jun 2010, 10:39:42 (14 years ago)
Author:
uli
Message:

Renable jambtable examples and add import_datetime examples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/README.txt

    r5235 r5239  
    22*************************
    33
    4 :nodoctest:
     4:doctest:
    55
    66JAMB data is stored in a JAMBDataTable.
     
    2929We can get the entries from the table as an iterator:
    3030
    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     {...}]
    3350
     51We can also get a datetime stamp, that tells, when the table was
     52imported. This could help with maintaining old tables:
     53
     54    >>> table.import_datetime
     55    datetime.datetime(..., ..., ..., ..., ..., ..., ...)
     56   
    3457
    3558We can delete the table:
Note: See TracChangeset for help on using the changeset viewer.