Project

General

Profile

« Previous | Next » 

Revision 3627

bin/map: by_col: db_xml.put_table() call: Use new col_defaults param to automatically set datasource_id to the in_label (datasource name)

View differences:

map
344 344
                
345 345
                # Import rows
346 346
                in_row_ct_ref = [0]
347
                # TODO: Move this to the mappings as some kind of metadata
348
                col_defaults = {'datasource_id': xpath.path2xml(
349
                    'party/organizationname="'+in_label_ref[0]+'"')}
347 350
                db_xml.put_table(in_db, root.firstChild, table, in_row_ct_ref,
348
                    row_ins_ct_ref, n, start, on_error)
351
                    row_ins_ct_ref, n, start, on_error, col_defaults)
349 352
                row_ct = in_row_ct_ref[0]
350 353
            else:
351 354
                # Use normal by-row method

Also available in: Unified diff