(tbl, field)
return dict
Create dictionary of lists from given list using field as grouping criteria
        Used for master detail operatons to group detail records according to master id
Create dictionary of lists from given list using field as grouping criteria
        Used for master detail operatons to group detail records according to master id
Create dictionary of lists from given list using field as grouping criteria Used for master detail operatons to group detail records according to master id
def get_record_lists(tbl, field):
    """ Create dictionary of lists from given list using field as grouping criteria
        Used for master detail operatons to group detail records according to master id
    """
    dict = dbdict()
    for rec in tbl:
        id = str( rec[field] )
        dict.setdefault( id, [] ).append(rec)
    return dict
def get_record_lists ( tbl , field ) : dict = dbdict ( ) for rec in tbl : id = str ( rec [ field ] ) dict . setdefault ( id , [ ] ) . append ( rec ) return dict